CacheEvict出现 maybe not public or not valid?这个错误

今天写代码,写的好好的,写修改的时候,报错了,前端报500,我立马看后台代码

果然报错了:

org.springframework.expression.spel.RuntimeException: EL1008E: Property or field 'entity' cannot be found on object of type 'org.springframework.cache.interceptor.CacheExpressionRootObject' - maybe not public or not valid?

发现修改的缓存注解写错了

于是加上就好了

扫描二维码关注公众号,回复: 9604300 查看本文章

猜你喜欢

转载自www.cnblogs.com/youyouluming-xz/p/12422693.html
今日推荐