Cache operation aborted because can't find @Cached definition com.alicp.jetcache.CacheConfigException: can't find @Cached definition with area=default name=?

11dmarpk  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(95)

查询方法上的注解
@cached(name = "AAAAA",key = "'AAAAA'",expire = 180, cacheType = CacheType.REMOTE)

另外一个方法上的缓存失效
@CacheInvalidate(name = "AAAAA",key = "'AAAAA'")

报错:
can't find @cached definition with area=default name=AAAAA, specified in 某个方法

edqdpe6u

edqdpe6u1#

你这个是在同一个进程里面吗?或者@cached的包范围没有被扫描到,确实会报这个异常
查询方法上的注解 @cached(name = "AAAAA",key = "'AAAAA'",expire = 180, cacheType = CacheType.REMOTE)

另外一个方法上的缓存失效 @CacheInvalidate(name = "AAAAA",key = "'AAAAA'")

报错: can't find @cached definition with area=default name=AAAAA, specified in 某个方法

相关问题