查询方法上的注解@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 某个方法
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 某个方法
1条答案
按热度按时间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 某个方法