Describe the bug when I user the annotation @Cacheable(cacheNames = "cacheNames:", key = "'User:' + #phone") like this, the result key into the cache is ":null", It looks like the SPEL expression is not working,the params is ?phone=180000000

Sample Spring Cloud Openfeign about the cache Capability

org.springframework.cache.interceptor.CacheAspectSupport.CacheOperationContext#generateKey Spring Cloud Openfeign about the cache Capability

Comment From: whaceyou

when I user the @Cacheable on a service bean,it's woking ok

Comment From: whaceyou

the spring cloud version is 2021.0.5

Comment From: cbezmen

I tested with spring cloud 2022.0.1 and spring boot 3.0.2. It is working. Could you apply changes to this repo so I can check it?

https://github.com/cbezmen/can-feign/tree/whaceyou

When you call http://localhost:8080/ -> it will store the cache http://localhost:8080/cache -> return all items stored in the cache

cache

Comment From: OlgaMaciaszek

Thanks a lot for verifying this @cbezmen :). @whaceyou please provide a minimal, complete, verifiable example that reproduces the issue you can sue @cbezmen's sample as he's suggesting.

Comment From: spring-cloud-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-cloud-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.