/** * Initialise Tiles on application startup and identify the location of the tiles configuration file, tiles.xml. * * @return tiles configurer */ @Bean public TilesConfigurer tilesConfigurer() { final TilesConfigurer configurer = new TilesConfigurer(); configurer.setDefinitions(new String[] { "WEB-INF/tiles/tiles.xml" }); configurer.setCheckRefresh(true); // Provide Spring Beans as view preparers configurer.setPreparerFactoryClass(SpringBeanPreparerFactory.class); return configurer; }