2
기본적으로 JSP보기의 출력을 캐시하는 데 사용할 수 @Cacheable 수 있습니다, 그것은 가능한이 작업을 수행하는 것입니다 :이 때봄 +으로 Ehcache는
@Cacheable(cacheName="default")
@RequestMapping("getContent/{name}")
public String getContentByNameHandler(@PathVariable String name, Model model) {
ContentService contentService = domainService.getContentService();
model.addAttribute("model",contentService.getContentByName(name));
return RESOURCE_FOLDER + "content";
}
은,보기가 캐시되지만 단지 간단한 jsp 뷰 렌더링 로직이 완료된 후 jsp 뷰가 아닌 캐시에서 jsp의 일반 내용이 리턴됩니다. 나는 봄 3.0.7에있어 ehcache-spring-annotations (http://code.google.com/p/ehcache-spring-annotations)
좋아, 내가 세부 사항을 파고 아니지만,이 경우, 캐시 가능한 jsp의 일반 출력을 저장하고 그냥 처리 출력되지 않습니다. 그러나이 여전히 내 질문에 대답, 감사합니다. – chrismarx