码迷,mamicode.com
首页 > 其他好文 > 详细

禁用quartz自动检查更新

时间:2015-07-06 17:29:35      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:

禁用quartz自动检查更新的3种方法

1,

 <bean id="startQuertz" lazy-init="false" autowire="no" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
            <property name="triggers">
                <list>
                   <ref bean="cronQuartzClock"/><!--申请-->
                    <!--<ref bean="cronXwQuartzClock"/>行为-->
                </list>
            </property>
            
            <property name="schedulerContextAsMap">   
            <map>     
                <!-- spring 管理的service需要放到这里,才能够注入成功   -->
                <description>schedulerContextAsMap</description>   
                <entry key="customerService" value-ref="customerServiceImpl"/>
            </map>   
               </property>
            <property name="quartzProperties">
                <props>
                    <!-- 禁用quartz自动检查更新 -->
                    <prop key="org.quartz.scheduler.skipUpdateCheck">true</prop>
                </props>
            </property>
        </bean>

2,

启动参数中添加
-Dorg.terracotta.quartz.skipUpdateCheck=true

3,

启动的类中添加
System.setProperty("org.terracotta.quartz.skipUpdateCheck","true");

禁用quartz自动检查更新

标签:

原文地址:http://www.cnblogs.com/live365wang/p/4624751.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!