程序包 org.springframework.web.server.i18n
Locale related support classes. Provides standard LocaleContextResolver implementations.
接口概要 接口 说明 LocaleContextResolver Interface for web-based locale context resolution strategies that allows for both locale context resolution via the request and locale context modification via the HTTP exchange.类概要 类 说明 AcceptHeaderLocaleContextResolver LocaleContextResolver
implementation that simply uses the primary locale specified in the "Accept-Language" header of the HTTP request (that is, the locale sent by the client browser, normally that of the client's OS).FixedLocaleContextResolver LocaleContextResolver
implementation that always returns a fixed locale and optionally time zone.