<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>
2015-09-13 00:12:03 UpdateChecker.java DEBUG Quartz version update check failed: www.terracotta.org 2015-09-13 00:12:03 UpdateChecker.java DEBUG Update check failed: java.net.UnknownHostException: www.terracotta.org at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at sun.net.NetworkClient.doConnect(NetworkClient.java:175) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) at sun.net.www.http.HttpClient.New(HttpClient.java:308) at sun.net.www.http.HttpClient.New(HttpClient.java:326) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:997) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:851) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301) at net.sf.ehcache.util.UpdateChecker.getUpdateProperties(UpdateChecker.java:153) at net.sf.ehcache.util.UpdateChecker.doCheck(UpdateChecker.java:117) at net.sf.ehcache.util.UpdateChecker.checkForUpdate(UpdateChecker.java:104) at net.sf.ehcache.util.UpdateChecker.run(UpdateChecker.java:95) at java.util.TimerThread.mainLoop(Timer.java:555) 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");