Skip to main content

ThemeResolver

Learn ThemeResolver (Theme Support, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes ThemeResolver is the Spring 5 interface that answers one question per request: which theme name is active? It has resolveThemeName and setThemeName . Implementations : FixedThemeResolver (always one theme), SessionThemeResolver (stores it in the session) and CookieThemeResolver (stores it in a cookie). Bean name : the DispatcherServlet looked for a bean named themeResolver ; it was removed in Spring Framework 6.0.

More lessons in Theme Support