- 浏览: 3366680 次
- 性别:
- 来自: 珠海
文章分类
- 全部博客 (1633)
- Java (250)
- Android&HTML5 (111)
- Struts (10)
- Spring (236)
- Hibernate&MyBatis (115)
- SSH (49)
- jQuery插件收集 (55)
- Javascript (145)
- PHP (77)
- REST&WebService (18)
- BIRT (27)
- .NET (7)
- Database (105)
- 设计模式 (16)
- 自动化和测试 (19)
- Maven&Ant (43)
- 工作流 (36)
- 开源应用 (156)
- 其他 (16)
- 前台&美工 (119)
- 工作积累 (0)
- OS&Docker (83)
- Python&爬虫 (28)
- 工具软件 (157)
- 问题收集 (61)
- OFbiz (6)
- noSQL (12)
最新评论
-
HEZR曾嶸:
你好博主,这个不是很理解,能解释一下嘛//左边+1,上边+1, ...
java 两字符串相似度计算算法 -
天使建站:
写得不错,可以看这里,和这里的这篇文章一起看,有 ...
jquery 遍历对象、数组、集合 -
xue88ming:
很有用,谢谢
@PathVariable映射出现错误: Name for argument type -
jnjeC:
厉害,困扰了我很久
MyBatis排序时使用order by 动态参数时需要注意,用$而不是# -
TopLongMan:
非常好,很实用啊。。
PostgreSQL递归查询实现树状结构查询
spring4.0 整合 Quartz 实现动态任务调度 http://www.cnblogs.com/Alandre/p/3735072.html
Spring 3整合Quartz 2实现定时任务二:动态添加任务 http://www.dexcoder.com/selfly/article/308
Spring 3整合Quartz 2实现定时任务三:动态暂停 恢复 修改和删除任务 http://www.dexcoder.com/selfly/article/311
Spring + Quartz任务调度实战之动态作业调度 http://blog.csdn.net/kongxx/article/details/6860732
任务调度开源框架Quartz动态添加、修改和删除定时任务 http://blog.csdn.net/luo201227/article/details/37511137
Spring 调度工具Quartz cron 表达式的格式 http://blog.csdn.net/limenghua9112/article/details/45242239
Quartz的cron表达式 http://www.blogjava.net/javagrass/archive/2011/07/12/354134.html
Spring Quartz 1.8x http://panyongzheng.iteye.com/blog/2081469
http://blog.csdn.net/lk_blog/article/details/11744621
注:Spring3.2.4配置文件中使用CronTriggerFactoryBean来集成quartz2.x,使用CronTriggerBean来集成quartz1.8.x及以前版本.
如果涉及到shiro: shiro安全框架扩展教程--异常退出没有清除缓存信息处理方案 http://blog.csdn.net/shadowsick/article/details/17265625
这个方法可能避免使用sessionValidationScheduler, 就是避免使用, 就能使用高版本的quartz了.
注解方式参考:基于Spring注解方式配置Quartz http://blog.csdn.net/evankaka/article/details/45400781
applicationContext.xml:
web.xml:
代码下载地址:http://download.csdn.net/detail/lk_blog/6277021
Spring 3整合Quartz 2实现定时任务二:动态添加任务 http://www.dexcoder.com/selfly/article/308
Spring 3整合Quartz 2实现定时任务三:动态暂停 恢复 修改和删除任务 http://www.dexcoder.com/selfly/article/311
Spring + Quartz任务调度实战之动态作业调度 http://blog.csdn.net/kongxx/article/details/6860732
任务调度开源框架Quartz动态添加、修改和删除定时任务 http://blog.csdn.net/luo201227/article/details/37511137
Spring 调度工具Quartz cron 表达式的格式 http://blog.csdn.net/limenghua9112/article/details/45242239
Quartz的cron表达式 http://www.blogjava.net/javagrass/archive/2011/07/12/354134.html
Spring Quartz 1.8x http://panyongzheng.iteye.com/blog/2081469
http://blog.csdn.net/lk_blog/article/details/11744621
注:Spring3.2.4配置文件中使用CronTriggerFactoryBean来集成quartz2.x,使用CronTriggerBean来集成quartz1.8.x及以前版本.
如果涉及到shiro: shiro安全框架扩展教程--异常退出没有清除缓存信息处理方案 http://blog.csdn.net/shadowsick/article/details/17265625
这个方法可能避免使用sessionValidationScheduler, 就是避免使用, 就能使用高版本的quartz了.
注解方式参考:基于Spring注解方式配置Quartz http://blog.csdn.net/evankaka/article/details/45400781
applicationContext.xml:
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:task="http://www.springframework.org/schema/task" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd"> <!-- 启动触发器的配置开始 --> <bean name="startQuertz" lazy-init="false" autowire="no" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> <property name="triggers"> <list> <ref bean="myJobTrigger" /> </list> </property> </bean> <!-- quartz-2.x的配置 --> <bean id="myJobTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"> <property name="jobDetail"> <ref bean="myJobDetail" /> </property> <property name="cronExpression"> <value>0/1 * * * * ?</value> </property> </bean> <!-- 调度的配置结束 --> <!-- job的配置开始 --> <bean id="myJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> <property name="targetObject"> <ref bean="myJob" /> </property> <property name="targetMethod"> <value>work</value> </property> </bean> <!-- job的配置结束 --> <!-- 工作的bean --> <bean id="myJob" class="com.pandy.framework.base.comm.quartz.QuartzJob1" /> <!-- 使用注解的方式来扫描定时任务 --> <!-- 定时器开关 开始--> <task:annotation-driven/> <!-- 定时器开关 结束--> <task:scheduled-tasks> <task:scheduled ref="quartzJob3" method="work" cron="1/4 * * * * ?"/> </task:scheduled-tasks> </beans>
package com.pandy.framework.base.comm.quartz; /** * 项目名称: wp_idea_linux * 功能说明: * 创建者: Pandy, * 邮箱: panyongzheng@163.com, 1453261799@qq.com * 版权: * 官网: * 创建日期: 15-12-3. * 创建时间: 上午11:46. * 修改历史: * ----------------------------------------------- */ public class QuartzJob1 { public void work() { System.out.println("任务调度------------------------------QuartzJob1"); } }
package com.pandy.framework.base.comm.quartz; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Service; /** * 项目名称: wp_idea_linux * 功能说明: * 创建者: Pandy, * 邮箱: panyongzheng@163.com, 1453261799@qq.com * 版权: * 官网: * 创建日期: 15-12-3. * 创建时间: 上午11:46. * 修改历史: * ----------------------------------------------- */ @Service public class QuartzJob2 { @Scheduled(fixedDelay = 3000) public void work() { System.out.println("任务调度------------------------------QuartzJob2"); } }
package com.pandy.framework.base.comm.quartz; import org.springframework.stereotype.Service; /** * 项目名称: wp_idea_linux * 功能说明: * 创建者: Pandy, * 邮箱: panyongzheng@163.com, 1453261799@qq.com * 版权: * 官网: * 创建日期: 15-12-3. * 创建时间: 上午11:49. * 修改历史: * ----------------------------------------------- */ @Service public class QuartzJob3 { public void work() { System.out.println("任务调度------------------------------QuartzJob3"); } }
web.xml:
<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <!-- Spring config start --> <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/classes/applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <!-- Spring config end --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
代码下载地址:http://download.csdn.net/detail/lk_blog/6277021
发表评论
-
分布式存储系统GlusterFS安装配置
2016-06-27 14:51 995http://navyaijm.blog.51cto.com/ ... -
分布式查询 presto 入门安装使用
2016-06-24 15:44 2469http://my.oschina.net/chengxiao ... -
Spring Boot 属性配置
2016-06-24 11:04 1149Spring Boot 属性配置和使用 http://blog ... -
Spring Boot 集成MyBatis
2016-06-24 10:55 1991Spring Boot 集成MyBatis http://bl ... -
Spring MVC防重复提交
2016-06-17 15:47 1591http://my.oschina.net/zyqjustin ... -
Spring容器加载完之后执行特定任务
2016-06-17 15:36 2244http://my.oschina.net/simpleton ... -
跟我学习dubbo
2016-06-17 15:20 1035跟我学习dubbo-目录 http://bluereader. ... -
JavaMelody监控web服务器
2016-06-17 14:20 1149JavaMelody监控web服务器 http://my.os ... -
使用spring-session和shiro来代理session的配置
2016-06-16 11:21 11993使用spring-session和redis来代理sessio ... -
JSTL 的 if else : 有 c:if 没有 else 的处理
2016-06-14 09:52 1294http://blog.csdn.net/xiyuan1999 ... -
spring mvc 请求转发和重定向
2016-06-14 09:48 1353http://blog.csdn.net/jackpk/art ... -
freemarker使用记录
2016-06-08 16:24 1280freeMarker语法 http://uule.iteye. ... -
freemarker判断是否为空
2016-06-08 16:03 2http://www.oschina.net/code/sni ... -
ehcache 分布式支持
2016-06-05 22:26 1058原文 http://my.oschina.net/glenxu ... -
Intellij IDEA插件开发入门
2016-05-26 11:42 2846原文: http://blog.csdn.net/dc_726 ... -
阿里巴巴Druid数据源的配置与使用
2016-05-24 17:42 1499http://my.oschina.net/wjme/blog ... -
mvc:view-controller
2016-05-18 10:26 1050http://blog.csdn.net/lzwglory/a ... -
spring配置事物的方式:注解和aop配置
2016-05-14 00:26 4063参考: Spring AOP中pointcut express ... -
分布式任务调度组件 Uncode-Schedule
2016-05-13 14:47 2244http://www.oschina.net/p/uncode ... -
Mybatis分库分表扩展插件
2016-05-12 15:47 1588http://fangjialong.iteye.com/bl ...
相关推荐
Spring4.X整合Quartz2.X,完整的Maven项目,是一个Demo项目,仅仅适用于刚刚入门。
在网上扒拉下来的spring3和quartz1.8.6版本集成的代码,貌似spring4和quartz1.8.6就集成不了了,得升到quartz 2.x
NULL 博文链接:https://panyongzheng.iteye.com/blog/2081469
一个涵盖六个专栏:Spring Boot 2.X、Spring Cloud、Spring Cloud Alibaba、Dubbo、分布式消息队列、分布式事务的仓库。基于 Spring Boot 2.X 版本的深度入门教程。快速学会 SpringMVC API 接口的编写的同时,我还想...
基于 Spring Boot 2.X 版本的深度入门教程。 市面上的 Spring Boot 基础入门文章很多,但是深度入门文章却很少。对于很多开发者来说,入门即是其对某个技术栈的最终理解,一方面是开发者“比较懒”,另一方面是文章...
NULL 博文链接:https://csdxqzp.iteye.com/blog/665290
第2章:通过一个简单的例子展现开发Spring Web应用的整体过程,通过这个实例,读者可以快速跨入Spring Web应用的世界。 第3章:讲解Spring IoC容器的知识,通过具体的实例详细地讲解IoC概念。同时,对Spring框架...
16.7.2 使用Spring Servlet API模拟对象 16.7.3 使用Spring RestTemplate测试 16.7.4 使用Selenium测试 16.8 小结 第17章 实战案例开发 17.1 论坛案例概述 17.1.1 论坛整体功能结构 17.1.2 论坛用例描述 17.1.3 主要...
整合Spring3.0+quartz-2.1.6 ..............................................................................
主要技术:springMVC springSecurity3.x Mybaits3.x mysql log4j md5 主要功能有: ... springQuartz 定时任务 springAOP日志拦截处理 Mybaits分页插件封装统一处理 总之,是一个非常值得研究的项目
spring和quartz1.x及quartz2.x集成,具体见博客
添加公众号:猿有一技,回复 :Spring ,获取SpringBoot2.x quartz yml完整配置
陈开雄 Spring+3.x企业应用开发实战光盘源码 !!!!压缩包的jar包太多,太大无法上传,请谅解,需要的可以联系我 QQ:349721489 第1章:对Spring框架进行宏观性的概述,力图使读者建立起对Spring整体性的认识。 ...
基于spring-boot 2.x + quartz 的CRUD任务管理系统,适用于中小项目
茴香豆的“茴”有几种写法? spring 整合 quartz|| timer有几种方式? ...代码示例,依赖spring2.x.jar quartz1.6.x.jar 相关介绍: http://blog.csdn.net/liu251/archive/2009/08/18/4459514.aspx
另外,对Struts 1.x的支持被独立成 'spring-webmvc-struts.jar'。 注意:经常被使用的的Spring的DispatcherServlet也是Spring Web MVC框架中的一部分。因此,就算你只是为了远程访问(例如,暴露Hessian或者 HTTP...
-- quartz-2.x的配置 --> class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"> <value>0/1 * * * * ? <!-- 调度的配置结束 --> <!-- job的配置开始 --> class=...
spring4.2.2版本,springmvc,mybatis+quartz2.2
2.cronExpression 字段 输入 job 执行的间隔秒,建议2秒执行一次,好测试,看效果。 3.暂停为暂停JOB。 4.恢复为恢复暂停的job。 5.更新一秒 或者五秒,我写死了,懒得再写页面传值了,知道怎么回事就行了。 6....
20.5.2. Remote Update 21. Packaging Your Application for Production 22. What to Read Next IV. Spring Boot features 23. SpringApplication 23.1. Startup Failure 23.2. Customizing the Banner 23.3. ...