@CacheConfig

An operation-level customization always overrides a customization set on @CacheConfig. Therefore, this gives three levels of customizations for each cache operation:

  • Globally configured, available for CacheManager, KeyGenerator.

  • At the class level, using @CacheConfig.

  • At the operation level.

How to do global configuration?

Comment From: snicoll

By implementing CachingConfigurer. I can see that the reference documentation can be improved there.

Comment From: linghengqian

If I understand correctly, this is the same usage as extends CachingConfigurerSupport which is outdated on Spring 6. If you search for CachingConfigurerSupport, you will get a lot of integration information related to Ehcache 3.

Comment From: starriesWEB

Because I didn't see it on the official website docs, but it's solved now, thanks

通过实施CachingConfigurer. 我可以看到可以在那里改进参考文档。