Code example for TilesConfigurer

Methods: setDefinitions

0
		return new StringToEntityConverter(Category.class);
	} 
 
	@Bean 
	public TilesConfigurer tilesConfigurer() {
		TilesConfigurer tilesConfigurer = new TilesConfigurer();
		tilesConfigurer.setDefinitions(new String[] { "/WEB-INF/tiles/tiles-configuration.xml" });
		return tilesConfigurer;
	} 
 
	@Bean 
	public CommonDataHandlerInterceptor commonDataHandlerInterceptor() { 
		return new CommonDataHandlerInterceptor(); 
	} 
 
	@Override 
	public void addFormatters(FormatterRegistry registry) {
		registry.addConverter(bookConverter());
		registry.addConverter(categoryConverter());
	}