Java Code Examples for org.springframework.web.servlet.view.tiles3.TilesConfigurer#setCheckRefresh()

The following examples show how to use org.springframework.web.servlet.view.tiles3.TilesConfigurer#setCheckRefresh() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WebConfig.java    From Project with Apache License 2.0 5 votes vote down vote up
@Bean
public TilesConfigurer tilesConfigurer() {
  TilesConfigurer tiles = new TilesConfigurer();
  tiles.setDefinitions(new String[] {
      "/WEB-INF/layout/tiles.xml",
      "/WEB-INF/views/**/tiles.xml"
  });
  tiles.setCheckRefresh(true);
  return tiles;
}
 
Example 2
Source File: ConfigurationForTiles.java    From spring-boot-web-mvc-tiles3 with Apache License 2.0 5 votes vote down vote up
/**
 * 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);
    return configurer;
}
 
Example 3
Source File: TestConfigurtaion.java    From spring-boot-web-mvc-tiles3 with Apache License 2.0 5 votes vote down vote up
/**
    * Configure tiles using a filesystem location for the configuration file rather than a
    * URL based location.
    * 
    * @return tiles configurer
    */
@Bean
public TilesConfigurer tilesConfigurer() {
	TilesConfigurer configurer = new TilesConfigurer();
	configurer.setDefinitions(new String[] { "file:src/main/webapp/WEB-INF/tiles/tiles.xml" });
	configurer.setCheckRefresh(true);
	return configurer;
}