Spring MVC SiteMesh 3 integration using ViewResolver instead of Servlet Filter
#Usage
@Bean
public ViewResolver viewResolver() {
return new SiteMeshViewResolverBuilder(viewResolverDelegate())
.addDecoratorPath("/*", "decorators/decorator")
.create();
}
@Bean(name = "viewResolverDelegate")
public ViewResolver viewResolverDelegate() {
InternalResourceViewResolver resolver = new InternalResourceViewResolver();
resolver.setPrefix("/WEB-INF/views/");
resolver.setSuffix(".jsp");
return resolver;
}