java - Spring 3.1.1 MVC @Cacheable not being hit - Stack Overflow
Your PersonService
service is not implementing an interface. Ehcache-spring-annotations requires an interface, as described in the FAQ:
Requirement 1: your class MUST implement some (any) interface. If your class does not implement an interface, this project will not be able to create a Proxy to mimic your class and apply the cache semantics around your annotated methods.
Read full article from java - Spring 3.1.1 MVC @Cacheable not being hit - Stack Overflow
No comments:
Post a Comment