Spring @Cacheable with SpEL key: always evaluates to null
问题 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", key = "#providerDTO.identifier") ClientVO loadClientVOByProviderDTO(ProviderDTO providerDTO); This is throwing the following error org.springframework.expression.spel.SpelEvaluation Exception: EL1007Epos 0): Field or property 'identifier' cannot be found on null The providerDTO argument is not null, I have verified this many times. The docs