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

时间:2020-03-05 21:55:42   收藏:0   阅读:959

今天写代码,写的好好的,写修改的时候,报错了,前端报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?

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

技术分享图片

 

于是加上就好了

技术分享图片

 

原文:https://www.cnblogs.com/youyouluming-xz/p/12422693.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!