接口的使用
org.springframework.web.servlet.ThemeResolver
使用ThemeResolver的程序包 程序包 说明 org.springframework.web.servlet.support Support classes for Spring's web MVC framework.org.springframework.web.servlet.theme Theme support classes for Spring's web MVC framework.org.springframework.web.servlet.support中ThemeResolver的使用
返回ThemeResolver的org.springframework.web.servlet.support中的方法 修饰符和类型 方法 说明 static ThemeResolver
RequestContextUtils. getThemeResolver(HttpServletRequest request)
Return the ThemeResolver that has been bound to the request by the DispatcherServlet.org.springframework.web.servlet.theme中ThemeResolver的使用
实现ThemeResolver的org.springframework.web.servlet.theme中的类 修饰符和类型 类 说明 class
AbstractThemeResolver
Abstract base class forThemeResolver
implementations.class
CookieThemeResolver
ThemeResolver
implementation that uses a cookie sent back to the user in case of a custom setting, with a fallback to the default theme.class
FixedThemeResolver
ThemeResolver
implementation that simply uses a fixed theme.class
SessionThemeResolver
ThemeResolver
implementation that uses a theme attribute in the user's session in case of a custom setting, with a fallback to the default theme.