Ehcache 사용하지 마세요 2.x

Spring 프레임워크 6.0 는 Ehcache 2.x 를 지원하지 않습니다. 이 규칙은 org.springframework.cache.ehcache 패키지 또는 ehcache.xml 파일로 내보내집니다.

Ehcache 3이 직접 대체됩니다. 사용할 종속성 업데이트 org.ehcache:ehcache :NONE. jakarta 분류기. 업데이트된 버전이 없습니다 org.springframework.cache.ehcache를 사용하여 Ehcache 또는 새로운 네이티브 API를 사용하는 것이 좋습니다.

다음 예제는 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>ehcache</artifactId> <version>3.10.8</version> <classifier>jakarta</classifier></dependency>

자세한 정보는 다음 자원을 참조하십시오.