quartz自動チェック更新を無効にする

4922 ワード

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");