今天写代码,写的好好的,写修改的时候,报错了,前端报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?
发现修改的缓存注解写错了
于是加上就好了