12:18:55,541 INFO [UpdateChecker] 新しいアップデートが見つかりました: 2.0.0 [ http://ehcache.org/news.html]
新しい更新の ehcache チェックを抑制するにはどうすればよいですか。これは、j2ee アプリケーションのロード中、および ehcache が初期化されているときに発生します。
12:18:55,541 INFO [UpdateChecker] 新しいアップデートが見つかりました: 2.0.0 [ http://ehcache.org/news.html]
新しい更新の ehcache チェックを抑制するにはどうすればよいですか。これは、j2ee アプリケーションのロード中、および ehcache が初期化されているときに発生します。
1つの方法は、ルートタグehcache.xml
の属性を使用してクラスパスにファイルを配置することです。updateCheck="false"
例えば:
<ehcache updateCheck="false">
<defaultCache
maxElementsInMemory="0"
eternal="false"
timeToIdleSeconds="0"
timeToLiveSeconds="0"
overflowToDisk="false"
diskPersistent="false"/>
</ehcache>
別の方法は、環境変数を設定することです。
System.setProperty("net.sf.ehcache.skipUpdateCheck", "true");
簡単に言うと、ehcache.xml構成ファイルで、updateCheckを無効にしてください。
<ehcache updateCheck="false">
<defaultCache
maxElementsInMemory="0"
eternal="false"
timeToIdleSeconds="0"
timeToLiveSeconds="0"
overflowToDisk="false"
diskPersistent="false"
/>
</ehcache>