7.3 CacheInterceptor
上例中的用法将使用actionKey作为cacheName,在使用之前需要在ehcache.xml中配置以actionKey命名的cache如:
- @Before(CacheInterceptor.class)
- public void list() {
- setAttr(“blogList”, blogList);
- }
上例中的用法将使用actionKey作为cacheName,在使用之前需要在ehcache.xml中配置以actionKey命名的cache如:
- @Before(CacheInterceptor.class)
- public void list() {
- setAttr(“blogList”, blogList);
- }
本文档使用 全库网 构建