日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

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

欄目分類
最近更新