ITeye博客

springMvc定时器执行两次

ch_dj · 2015-02-15 16:26 · Web前端 · Web前端 · Markdown

用quartz 执行定时任务时,会执行2次,具体原因不详

先把定时的代码放到一个单独的配置文件中,然后在web.xml文件中加载这个定时的配置文件。

contextConfigLocation

classpath*:/applicationContext.xml,classpath*:/schedule.xml

我的定时配置文件:schedule.xml

原博客: http://blog.sina.com.cn/s/blog_9ed9ac7d0101f4eb.html

附件是自己 项目的解决方法

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。