共 12 篇文章 |
|
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="configLocation" value="classpath:hibernate.cfg.xml" /> <property name="configurationClass" value="org.hibern... 阅90 转0 评0 公众公开 13-11-05 10:35 |
Spring3 jar包说明spring-aop.jar.spring-core,spring 3.1 jar, (spring-beans,spring 3.1 jar,AOP Alliance,spring.jar, CGLIB,Commons Attributes)。spring-core,spring 3.1 jar,(CGLIB)。spring-web,spring mvc jar,Struts。spring-web.jar.这个jar 文件包含Spring MVC 框架相关的所有类。spring自己实现的一个类似Spring MVC的... 阅2143 转27 评0 公众公开 13-09-28 14:15 |
Spring3.0与Quartz的整合实现定时任务调度最近在研究Spring中的定时任务功能,最好的办法当然是使用Quartz来实现。 阅2256 转8 评0 公众公开 12-08-23 09:51 |
通过以上配置,Web容器会自动加载/WEB-INF/applicationContext.xml初始化ApplicationContext实例,如果需要指定配置文件位置,可通过context-param加以指定:<context-param><param-name>contextConfigLocation</param-name><param-value>/WEB-INF/myApplicationContext.xml</param-value></context-param>... 阅2748 转6 评0 公众公开 12-05-23 15:19 |
阅707 转4 评0 公众公开 12-03-09 10:42 |
针对查询方法@Transactional(propagation=Propagation.NOT_SUPPORTED)针对某个方法不开启事务@Transactional(propagation=Propagation.REQUIRED)默认的事务支持。REQUIRED,readOnly=true)//只读,不能更新,删除@Transactional(propagation=Propagation.REQUIRED,timeout=30)//超时30秒@Transactional(propagation=Propagation.REQUIRED,isolat... 阅1134 转3 评0 公众公开 12-03-09 10:42 |
阅3604 转13 评0 公众公开 12-02-17 11:09 |
spring job 实例 job接口 ***************************************************package com.sangame.cms.job.base; public abstract class BaseJob { public abstract void execute() throws Exception ;private void saveOrUpdateIncludeCheck(String dateString,Long flag,Doc doc,IncludeCheck check){ if(check==null || check.getId()==... 阅810 转3 评0 公众公开 10-09-16 15:18 |
L是''last''的省略写法可以表示day-of-month和day-of-week域,但在两个字段中的意思不同,例如day-of-month域中表示一个月的最后一天,如果在day-of-week域表示''7''或者''SAT'',如果在day-of-week域中前面加上数字,它表示一个月的最后几天,例如''6L''就表示一个月的最后... 阅690 转6 评0 公众公开 10-09-16 14:42 |
<bean name="exampleJob" class="org.springframework.scheduling.quartz.JobDetailBean"> <property name="jobClass" value="example.ExampleJob" /> <property name="jobDataAsMap"> <map> <entry key="timeout" value="5... 阅473 转2 评0 公众公开 10-09-16 14:31 |