Using ehcache 3 with Spring Annotations (not using Spring Boot)

前端 未结 2 1438
走了就别回头了
走了就别回头了 2021-01-04 03:43

I\'m trying to get Ehcache 3 working with Spring 4 without using Spring boot.

Here is a working example out there which uses Spring Boot, but I\'m working on an exis

2条回答
  •  暖寄归人
    2021-01-04 04:15

    Indeed there is no native support of Ehcache 3 in Spring Caching.

    The good news is that you achieve what you want with the JCache support that Spring Caching has since Ehcache 3 is a compliant JCache implementation. And once you have a JCache CacheManager available in your application context, nothing forces you to use the JCache annotations. You can keep using the Spring Caching ones without any problem.

    You can find a demo of that here.

    Note: I am working on Ehcache

提交回复
热议问题