接口的使用
org.springframework.web.servlet.LocaleContextResolver
使用LocaleContextResolver的程序包 程序包 说明 org.springframework.web.servlet.i18n Locale support classes for Spring's web MVC framework.org.springframework.web.servlet.i18n中LocaleContextResolver的使用
实现LocaleContextResolver的org.springframework.web.servlet.i18n中的类 修饰符和类型 类 说明 class
AbstractLocaleContextResolver
Abstract base class forLocaleContextResolver
implementations.class
CookieLocaleResolver
LocaleResolver
implementation that uses a cookie sent back to the user in case of a custom setting, with a fallback to the specified default locale or the request's accept-header locale.class
FixedLocaleResolver
LocaleResolver
implementation that always returns a fixed default locale and optionally time zone.class
SessionLocaleResolver
LocaleResolver
implementation that uses a locale attribute in the user's session in case of a custom setting, with a fallback to the specified default locale or the request's accept-header locale.