报告错误的“缓存”注解:@Cacheable@CacheEvict@CachePut@CacheConfig,等等 .

示例:


@org.springframework.stereotype.Component
public class MyCacheManager implements CacheManager{... }

public class MyConfiguration {
   @Cacheable(value = "a",
       cacheResolver ="myCacheManager") // 报告 "Bean 必须为 'org.springframework.cache.interceptor.CacheResolver' 类型"
   public String getCache(String isbn) { ...}

   @Cacheable(value = "abc",
   private String getAbc() // 报告 "应在 public 方法上定义缓存注解"
   {...}
}