如何禁用Ehcache更新检查器? [英] How to disable the Ehcache update checker?
本文介绍了如何禁用Ehcache更新检查器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
12:18:55,541信息[UpdateChecker]找到新更新:2.0.0 [ http:/ /ehcache.org/news.html]
12:18:55,541 INFO [UpdateChecker] New update(s) found: 2.0.0 [http://ehcache.org/news.html]
如何禁止ehcache检查新更新,这是在加载我的j2ee应用程序时发生的,并且
How do I suppress ehcache checking for new update(s), this is happening while loading my j2ee application and when ehcache is getting initialized.
推荐答案
一种方法是放置 ehcache.xml
类路径上的$ c>文件,其根标记中具有属性 updateCheck = false
。
One way is to place a ehcache.xml
file on your classpath with the attribute updateCheck="false"
in the root tag.
例如:
<ehcache updateCheck="false">
<defaultCache
maxElementsInMemory="0"
eternal="false"
timeToIdleSeconds="0"
timeToLiveSeconds="0"
overflowToDisk="false"
diskPersistent="false"/>
</ehcache>
另一种方法是设置环境变量:
Another way is to set an environment variable:
System.setProperty("net.sf.ehcache.skipUpdateCheck", "true");
这篇关于如何禁用Ehcache更新检查器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文