前些天發現了一個巨牛的人工智能學習網站,通俗易懂,風趣幽默,忍不住分享一下給大家。點擊跳轉到教程。
報錯如題:?.SpelEvaluationException: EL1008E: Property or field 'cache_department_list_Tree' cannot be found on object of type 'org.springframework.cache.interceptor.CacheExpressionRootObject' - maybe not public?
這是在一個springboot 工程中開啟緩存的使用,緩存注解加在一個public方法A上,但方法A調用了一個private方法B。
解決:把方法B也改為public 。
(cache_department_list_Tree 是緩存的key)