Basically, is it possible to do this:
@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";
}
When I try this, the view is cached, but the only the plain content of the jsp is returned from the cache, not the jsp view after the simple jsp view rendering logic has completed. I'm on spring 3.0.7, so still using the ehcache-spring-annotations (http://code.google.com/p/ehcache-spring-annotations)