Spring @Cacheable with SpEL key: always evaluates to null

前端 未结 1 1531
清酒与你
清酒与你 2021-01-15 04:58

I am having a problem with @Cacheable and using a custom key based on Spring expression language. I have the following code

@Cacheable(value = \"myCache\", k         


        
1条回答
  •  一整个雨季
    2021-01-15 05:48

    Possible duplicate of SpelEvaluationException: EL1007E:(pos 43): Field or property 'group' cannot be found on null and spring @Cacheable with Ehcache, spel find null for valid object – I believe you compile without debug information. Please check your Maven configuration; you might want to post the relevant bits here. Search your POM (or parent POM) for the maven-compiler-plugin and a line such as:

    false
    

    0 讨论(0)
提交回复
热议问题