Java 类org.springframework.web.servlet.view.tiles3.SpringBeanPreparerFactory 实例源码

项目:spring-boot-web-app-base    文件:ConfigurationForTiles.java   
/**
 * 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;
}