Created
January 4, 2016 20:53
-
-
Save olegchir/819109f48164917e9530 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class MainConfiguration extends WebMvcConfigurerAdapter { | |
@Bean | |
public TilesViewResolver setupViewTilesResolver() { | |
TilesViewResolver resolver = new TilesViewResolver(); | |
resolver.setViewClass(TilesView.class); | |
resolver.setOrder(0); | |
return resolver; | |
} | |
@Bean | |
public TilesConfigurer setupTilesConfigurer() { | |
TilesConfigurer configurer = new TilesConfigurer(); | |
configurer.setDefinitions("classpath:webapp/layouts/tiles.xml"); | |
configurer.setCheckRefresh(true); | |
return configurer; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment