Package org.springframework.web.servlet.i18n
@NullMarked
package org.springframework.web.servlet.i18n
Locale support classes for Spring's web MVC framework.
Provides standard LocaleResolver implementations,
and a HandlerInterceptor for locale changes.
-
ClassesClassDescriptionAbstract base class for
LocaleContextResolverimplementations.Abstract base class forLocaleResolverimplementations.LocaleResolverimplementation that looks for a match between locales in theAccept-Languageheader and a list of configured supported locales.LocaleResolverimplementation that uses a cookie sent back to the user in case of a custom setting, with a fallback to the configured default locale, the request'sAccept-Languageheader, or the default locale for the server.LocaleResolverimplementation that always returns a fixed default locale and optionally time zone.Interceptor that allows for changing the current locale on every request, via a configurable request parameter (default parameter name: "locale").LocaleResolverimplementation that uses a locale attribute in the user's session in case of a custom setting, with a fallback to the configured default locale, the request'sAccept-Languageheader, or the default locale for the server.