Using ehcache 3 with Spring Annotations (not using Spring Boot)
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
This is simple and working sample for all needed changes from ehcache 2 to 3: https://imhoratiu.wordpress.com/2017/01/26/spring-4-with-ehcache-3-how-to/
This this is link for new configuration: