Spring MVC - ThemeResolver Examples

Code Snippets Spring MVC 

    @Bean(DispatcherServlet.THEME_RESOLVER_BEAN_NAME)
public ThemeResolver customThemeResolver() {
FixedThemeResolver fixedThemeResolver = new FixedThemeResolver();
fixedThemeResolver.setDefaultThemeName("app-theme");
return fixedThemeResolver;
}
Original Post




See Also