加载中
Spring Session处理

http://fruzenshtein.com/spring-java-configuration-session-timeout/ ---xml文件配置 http://fruzenshtein.com/spring-java-configuration-session-timeout/ ---Java代码实现...

2014/05/25 11:56
66
Spring 3 + Quartz 1.8.6 Scheduler Example

Updated on 25 July 2012 – Upgrade article to use Spring 3 and Quartz 1.8.6 (it was Spring 2.5.6 and Quartz 1.6) In this tutorial, we will show you how to integrate Spring with ...

2013/11/05 10:08
129
Invocation of init method failed; nested except...

Error creating bean with name 'quartzInit' defined in file [/xxx/xxx/context-timertask-service.xml]: Invocation of init method failed; nested exception is org.quartz.SchedulerEx...

SVN中修改本地账号和密码的方式

我的开发环境中需要连接到两个svn服务器,自然就需要两个密码,但是svn使用时默认密码是自动保存的,这样我再使用第二个svn服务的时候就一直报错如下: 1 2 URL access forbidden for unkno...

2013/11/04 10:51
2.3K
Java Design Pattern: Adapter

Adapter pattern is frequently used in modern Java frameworks. It comes into place when you want to use an existing class, and its interface does not match the one you need, or y...

2013/11/01 16:45
46
Java Design Pattern: Prototype

Prototype design pattern is used when very similar objects frequently are required. Prototype pattern clones objects and set the changed feature. This way less resources are con...

Java Design Pattern: Abstract Factory

Abstract Factory pattern adds another layer of abstraction for Factory pattern. If we compare Abstract Factory with Factory, it is pretty obvious that a new layer of abstraction...

Java Design Pattern: Factory

1. The story for Factory pattern Factory design pattern is used for creating an object based on different parameters. The example below is about creating human in a factory. If ...

Java Design Pattern: Singleton

Singleton pattern is one of the most commonly used patterns in Java. It is used to control the number of objects created by preventing external instantiation and modification. T...

Java Design Pattern: Decorator – Decorate your ...

Decorator pattern adds additional features to an existing object dynamically. In this post, I will use a simple example – decorate your girlfriend – to illustrate how decorato...

2013/10/24 14:47
45
Exception Hierarchy in Java – Diagram

In Java, exception can be checked or unchecked. They both fit into a class hierarchy. The following diagram shows Java Exception classes hierarchy. Red colored are checked excep...

Native Sql - 原生SQL查询Demo

package com.lc.nativesql.dao; import java.sql.SQLException; import java.util.List; import org.hibernate.Hibernate; import org.hibernate.Session; import org.junit.Test; ...

通过POI组件从数据库向Excel中写数据

写入Excel文件所需Jar包:poi-3.9-20121203.jar Excel文件存放路径:D://cba.xls,这个可以根据你自己想要写入excel文件的路径而改变, 修改这条语句中的路径即可: FileOutputStream fileo...

2013/09/25 14:52
401
POI组件读Excel

所需Jar包:poi-3.9-20121203.jar Excel文件存放路径:C:/Planet Power/demo.xls,这个可以根据你自己想要读取文件的路径而改变, 修改这条语句中的路径即可: FileInputStream excelFIS = n...

2013/09/25 14:23
100
Tomcat配置数据源

前提,这些配置文件都是在Eclipse中的Server文件夹中配置的,如果直接在Tomcat中配置,每次在Eclipse中启动后会被还原! Method One 1>在Server.xml中的<GlobalNamingResources></GlobalNami...

2013/09/07 19:20
46
DB2判断汉字长度、对数字字符进行判断

项目有个模块需要写校验规则,而规则中有个需求是这么描述的 XXX要求大于三个字符或两个汉字,把不满足的都过滤出来。 对于字符判断长度的想必大家都知道用length()函数,但是对于汉字呢?这...

2013/08/17 12:48
1K
Debug调试,断点进入另一个相同项目的类中

A和B是两个相同的项目,A一直本地,B是刚刚从SVN上down下来的。 Q:今天进行Debug调试B项目时,断点进入的是A项目的类中。一开始排错,以为运行的还是A项目,经过在JSP页面测试,确定运行的的...

Hibernate通过SQLQuery接口执行原生态SQL查询

Execution of native SQL queries is controlled via the SQLQuery interface Scalar queries--标量查询 The most basic SQL query is to get a list of scalars (values). sess.createSQLQ...

关闭TortoiseSVN的TSVNCache.exe进程方案

装上TortoiseSVN后,默认会开机启动一个叫做TSVNCache.exe的进程,任务管理器中杀掉后任然会启动。这个进程的功能是实时扫描纳入SVN版本控制的文件夹,如有修改,显示不同的图标以示修改。但...

2013/07/28 10:27
63
onClick事件中的return 函数

例如:onClick='return add_onclick()'与 onClick='add_onclick()'的区别 JAVASCRIPT在事件中调用函数时用return返回值实际上是对window.event.returnvalue进行设置。 而该值决定了当前操作是...

2013/07/27 14:51
134

没有更多内容

加载失败,请刷新页面

返回顶部
顶部