项目中使用了个quartz包,启动时提示Quartz version update check failed

时间:2021-11-24 11:34:20
<span style="font-family: Arial, Helvetica, sans-serif;">2015-09-13 00:12:02 AbstractBeanFactory.java DEBUG Returning cached instance of singleton bean 'sqlSessionFactory'</span>


  1. 2015-09-13 00:12:03 UpdateChecker.java DEBUG Quartz version update check failed: www.terracotta.org
  2. 2015-09-13 00:12:03 UpdateChecker.java DEBUG Update check failed:
  3. java.net.UnknownHostException: www.terracotta.org
  4. at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
  5. at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
  6. at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  7. at java.net.Socket.connect(Socket.java:579)
  8. at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
  9. at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
  10. at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
  11. at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
  12. at sun.net.www.http.HttpClient.New(HttpClient.java:308)
  13. at sun.net.www.http.HttpClient.New(HttpClient.java:326)
  14. at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:997)
  15. at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933)
  16. at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:851)
  17. at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
  18. at net.sf.ehcache.util.UpdateChecker.getUpdateProperties(UpdateChecker.java:153)
  19. at net.sf.ehcache.util.UpdateChecker.doCheck(UpdateChecker.java:117)
  20. at net.sf.ehcache.util.UpdateChecker.checkForUpdate(UpdateChecker.java:104)
  21. at net.sf.ehcache.util.UpdateChecker.run(UpdateChecker.java:95)
  22. at java.util.TimerThread.mainLoop(Timer.java:555)
  23. at java.util.TimerThread.run(Timer.java:505)

将这个检测更新给禁用掉就可以了。。。
三个方法任选:

------方法1----------------配置文件
<!-- 定时任务 -->

<bean id="z" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list></list>
</property>
<property name="quartzProperties"> 
<props>
<!-- 主要是这个参数 -->
<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");