32

12:18:55,541 INFO [UpdateChecker] 新しいアップデートが見つかりました: 2.0.0 [ http://ehcache.org/news.html]

新しい更新の ehcache チェックを抑制するにはどうすればよいですか。これは、j2ee アプリケーションのロード中、および ehcache が初期化されているときに発生します。

4

2 に答える 2

38

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");
于 2010-03-11T12:49:05.217 に答える
18

簡単に言うと、ehcache.xml構成ファイルで、updateCheckを無効にしてください。

<ehcache updateCheck="false">

<defaultCache
        maxElementsInMemory="0"
        eternal="false"
        timeToIdleSeconds="0"
        timeToLiveSeconds="0"
        overflowToDisk="false"
        diskPersistent="false"
        />
</ehcache>
于 2012-12-05T21:05:01.503 に答える