Updated indentation
This commit is contained in:
parent
651c407787
commit
f6e5e17c9a
|
@ -15,33 +15,33 @@ import org.springframework.web.servlet.view.tiles3.TilesViewResolver;
|
||||||
@ComponentScan(basePackages = "com.baeldung.tiles.springmvc")
|
@ComponentScan(basePackages = "com.baeldung.tiles.springmvc")
|
||||||
public class ApplicationConfiguration extends WebMvcConfigurerAdapter {
|
public class ApplicationConfiguration extends WebMvcConfigurerAdapter {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configure TilesConfigurer.
|
* Configure TilesConfigurer.
|
||||||
*/
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
public TilesConfigurer tilesConfigurer() {
|
public TilesConfigurer tilesConfigurer() {
|
||||||
TilesConfigurer tilesConfigurer = new TilesConfigurer();
|
TilesConfigurer tilesConfigurer = new TilesConfigurer();
|
||||||
tilesConfigurer.setDefinitions(new String[] { "/WEB-INF/views/**/tiles.xml" });
|
tilesConfigurer.setDefinitions(new String[] { "/WEB-INF/views/**/tiles.xml" });
|
||||||
tilesConfigurer.setCheckRefresh(true);
|
tilesConfigurer.setCheckRefresh(true);
|
||||||
return tilesConfigurer;
|
return tilesConfigurer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configure ViewResolvers to deliver views.
|
* Configure ViewResolvers to deliver views.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void configureViewResolvers(ViewResolverRegistry registry) {
|
public void configureViewResolvers(ViewResolverRegistry registry) {
|
||||||
TilesViewResolver viewResolver = new TilesViewResolver();
|
TilesViewResolver viewResolver = new TilesViewResolver();
|
||||||
registry.viewResolver(viewResolver);
|
registry.viewResolver(viewResolver);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configure ResourceHandlers to serve static resources
|
* Configure ResourceHandlers to serve static resources
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
||||||
registry.addResourceHandler("/static/**").addResourceLocations("/static/");
|
registry.addResourceHandler("/static/**").addResourceLocations("/static/");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue