错误信息关键信息:
EL1008E: Property or field 's' cannot be found on object of type 'org.springframework.cache
.interceptor.CacheExpressionRootObject' - maybe not public or not valid?
EL1008E:属性或字段不能在org.springframework.cache.interceptor.CacheExpressionRootObject
类型的对象上找到——可能不是公共的或者无效的?
报错代码:
是因为 @Cacheable(key=“banner”,value = “IndexList”)不能识别
在key中加入一对单引号,即可解决报错。