복붙노트

[SPRING] Spring 3.2와 Cache Abstraction에서 EhCache 구현이 누락되었습니다.

SPRING

Spring 3.2와 Cache Abstraction에서 EhCache 구현이 누락되었습니다.

우리의 코드를 Spring 3.2 버전 (3.1.3)으로 마이그레이션하려고하는데 Spring Cache Abstraction에 대한 문제가 있습니다.

우리는 CacheManager의 EhCache 구현을 사용하며 구성은 매우 간단합니다.

<cache:annotation-driven />

<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager" p:cache-manager-ref="ehcache" />
<bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" p:config-location="classpath:ehcache.xml" />

내 문제는 내가 봄 문맥 항아리에 EhCacheCacheManager 클래스와 해당 공장 빈이 누락되었습니다. 구현을 다른 모듈로 옮긴 것 같지만 정확히 어디에서 찾을 수 없습니다.

해결법

  1. ==============================

    1.부록 C. Spring Framework 3.2로 이주하기에 따르면,

    부록 C. Spring Framework 3.2로 이주하기에 따르면,

  2. ==============================

    2.Maven pom.xml 파일을 업데이트하면 효과적입니다.

    Maven pom.xml 파일을 업데이트하면 효과적입니다.

    등록 정보 :

        <org.springframework-version>3.2.3.RELEASE</org.springframework-version>
    

    종속성

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context-support</artifactId>
            <version>${org.springframework-version}</version>
        </dependency>
    
  3. ==============================

    3.oss.sonatype.org를 사용하여 이름으로 클래스를 검색하고 포함 된 아티팩트 (색인 된 경우)를 찾을 수 있습니다 (https://oss.sonatype.org/index.html#nexus-search;classname~EhCacheCacheManager).

    oss.sonatype.org를 사용하여 이름으로 클래스를 검색하고 포함 된 아티팩트 (색인 된 경우)를 찾을 수 있습니다 (https://oss.sonatype.org/index.html#nexus-search;classname~EhCacheCacheManager).

    스왑 일 (SwapnilS)이 대답 한대로, 그것은 봄 - 문맥 - 지원에 있습니다.

  4. from https://stackoverflow.com/questions/13956224/spring-3-2-and-cache-abstraction-missing-ehcache-implementation by cc-by-sa and MIT license