網站首頁 編程語言 正文
Property or field ‘xxx‘ cannot be found on object of type ‘org.xx.xxObject‘ - maybe not public?問題解決
作者:born_stubborn 更新時間: 2022-08-15 編程語言先看問題
org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'selectIndexList' cannot be found on object of type 'org.springframework.cache.interceptor.CacheExpressionRootObject' - maybe not public?
at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:226)
at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:94)
at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:81)
at org.springframework.expression.spel.ast.OpMinus.getValueInternal(OpMinus.java:98)
at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:121)
at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:262)
......
在springboot集成redis的時候遇到了問題:
EL1008E: Property or field ‘selectIndexList’ cannot be found on object of type ‘org.springframework.cache.interceptor.CacheExpressionRootObject’ - maybe not public?
at
解決方法:
?? ??
@Cacheable(key = "'selectIndexList'",value = "banner") //redis緩存注解
可能是少了單引號
原文鏈接:https://blog.csdn.net/born_stubborn/article/details/126336686
相關推薦
- 2022-04-23 .NET?Core使用APB?vNext框架入門教程_實用技巧
- 2023-01-04 Android?Toolbar應用欄使用方法簡介_Android
- 2023-06-05 python文件編譯為pyc后運行的實現步驟_python
- 2022-07-03 DatePicker動態設置picker-options 中的disabledDate屬性操作;
- 2022-05-23 高效的數據同步工具DataX的使用及實現示例_數據庫其它
- 2022-11-25 Python中日期和時間的用法超強總結_python
- 2022-09-28 C語言關于二叉樹中堆的創建和使用整理_C 語言
- 2022-04-21 Python的基礎語法和輸入輸出函數你都了解嗎_python
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支