今天寫代碼,寫的好好的,寫修改的時候,報錯了,前端報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?
發現修改的緩存注解寫錯了
於是加上就好了