`
yjgyjg4
  • 浏览: 115325 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
jdk local_policy与US_export_policy.jar  解决tomcat启动时, 由于密匙文件长度过大,照成加载失败,支付无法进行的情况.  替换位于jdk安装目录的/jdk1.7/jre/lib/security目录下的这两个jar即可
转自:http://www.yiibai.com/spring/spring-objectxml-mapping-example.html package com.yiibai.core.model; public class Customer { String name; int age; boolean flag; String address; //standard getter, setter and toString() methods. } package com.yiibai.core; import java.io.FileInpu ...

Quartz定时器表达式

    博客分类:
  • java
 
Cron 表达式包括以下 7 个字段:  秒,分,小时,月内日期,月,周内日期,年(可选字段),特殊字符   Cron 触发器利用一系列特殊字符,如下所示:   反斜线(/)字符表示增量值。例如,在秒字段中“5/15”代表从第 5 秒开始,每 15 秒一次。   问号(?)字符和字母 L 字符只有在月内日期和周内日期字段中可用。问号表示这个字段不包含具体值。所以,如果指定月内日期,可以在周内日期字段中插入“?”,表示周内日期值无关紧要。字母 L 字符是 last 的缩写。放在月内日期字段中,表示安排在当月最后一天执行。在周内日期字段中,如果“L”单独存在,就等于“7”,否则 ...
并发大的时候,出现以下错误: org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection   ORA-12519, TNS:no appropriate service handler foundThe Connection descri ...

zookeeper

    博客分类:
  • java
Zookeeper 学习笔记 概述 Zookeeper 从设计模式角度来看,是一个基于观察者模式设计的分布式服务管理框架,它负责存储和管理大家都关心的数据,然后接受观察者的注册,一旦这些数据的状态发生 变化,Zookeeper 就将负责通知已经在 Zookeeper 上注册的那些观察者做出相应的反应,从而实现集群中类似 Master/Slave 管理模式 Zookeeper 能够很容易的实现集群管理的功能,如有多台 Server 组成一个服务集群,那么必须要一个总管知道当前集群中每台机器的服务状态,一旦有机器不能提供服务,集群中其它集群必须知道,从而做出调整重新分配服务策略。同样当增加集群的 ...

redis

Redis Linux安装 1.官网下载redis压缩包 redis-3.2.1.tar.gz http://redis.io/download 2.使用tar命令解压, 进入redis目录,通过make命令编译 tar xzf redis-3.2.1.tar.gz cd redis-3.2.1 make 3.到src目录使用命令 nohup ./redis-server 启动 redis服务 4.通过./redis-cli连接到redis. 进入后可以使用redis命令操作 使用java 连接如果出现以下错误: DENIED Redis is running in prot ...

DWR session error

jsp 页面使用到DWR联动的下拉框, 有时会出现session error 错误,解决方法:在web.xml中修改crossDomainSessionSecurity 为false <servlet>           <servlet-name>dwr-invoker</servlet-name>           <!-- <display-name>DWR Servlet</display-name> -->           <servlet-class>org.directwebremotin ...
2014-11-21 11:14:40,093 - ERROR ContextLoader.initWebApplicationContext:203 - Context initialization failed org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 7 in XML document from class path resource [applicationContext-jms-activemq.xml] is invalid; nested exception is org. ...

oracle

oracle执行计划,百度文库文档,以备后用

tomcat

一.tomcat 组织结构 1. xml结构 <server>               ---顶层类元素可包含多个service <service> ---可包含一个Engine,多个Connector <Connector/> ---连接器类元素:代表通信接口 <Engine> ---为特定的service组件处理所有客户请求,可包含多个Host <Host> ---为特定的虚拟主机处理所有客户请求,可包含多个Context <Context>& ...

div 显示隐藏

<html> <script> function clik(){ var div_data=document.getElementById("div_ta").getElementsByTagName("div"); alert('111='+div_data.length); for(var i=0;i<div_data.length;i++) { if(div_data[i].style.display=="none") { div_data[i].sty ...
Maven – Fatal error compiling: tools.jar not found By Muruganantham Mani15 October, 20124 Comments You might quite experience the tools.jar not found when trying to compile using Maven.  This is because when you do the compilation, maven is trying to look for a tools.jar which is not available for th ...
使用maven 下载编译spring源码需要的jar包,里面有很多jar版本比较低,版本号很重要. 步骤:   1.首先安装maven,添加 eclipse工具需要的maven插件.   2.在eclipse中建立maven项目, 项目建立后会自动生成一个pom.xml   3.将附件中的pom.xml 内容copy到项目中的pom.xml maven会自动下载所需要的jar包. pom.xml内容: <?xml version="1.0" encoding="UTF-8"?> <!--groupID and version s ...
oracle 查询两个表的差别 比如 表1 create table T1 (   MAC          VARCHAR2(150),   PURCHASENAME VARCHAR2(200),   PRODUCTID    VARCHAR2(200) ) 表2 create table T2 (   MACADDR      VARCHAR2(20),   PRODUCTID    VARCHAR2(20) ) 表1中记录: mac           purchaname   productid 456521524     test1        A3_3445 456521 ...

linux

linux JDK 下载:http://www.oracle.com/technetwork/cn/java/javase/downloads/index.html 其中版本按需选择: jdk-7u7-linux-i586.rpm 32bit 安装包 jdk-7u7-linux-x64.rpm  64bit 安装包 使用root用户安装,否则会出现权限问题。 rpm -ivh jdk-7u7-linux-i586.rpm 安装完成后,设置环境变量 export CLASSPATH=".:/usr/java/jdk1.7.0_09/lib/dt.jar:/lib/tools.jar ...
Global site tag (gtag.js) - Google Analytics