Spring フレームワーク は をサポートしていない。 6.0 Ehcache 2.x このルールは org.springframework.cache.ehcache パッケージの有無 ehcache.xml 。
Ehcache 3が直接の交換である。 を使用するように依存関係を更新する org.ehcache:ehcache を持つ jakarta クラシファイアである。
の更新版はない org.springframework.cache.ehcacheJCache APIまたはその新しいネイティブAPIを通じて Ehcache。
次の例は ehcache.xml ファイルを示す。 このルールによってフラグが立てられるファイルを示す。
<ehcache> <diskStore path="java.io.tmpdir"/> <defaultCache maxElementsInMemory="1000" eternal="false" timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="true"/> </ehcache>
次の例では、更新された maven 依存関係を pom.xml
<dependency><groupId>org.ehcache</groupId> <artifactId>イーキャッシュ</artifactId> <version>3.10.8</version> <classifier>ジャカルタ</classifier></dependency>
詳しくは、以下のリソースを参照してください。