首页 > 其他 > 详细

禁用quartz自动检查更新

时间:2015-07-06 17:28:00      阅读:366      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!