程序包 org.springframework.context.i18n
Abstraction for determining the current Locale, plus global holder that exposes a thread-bound Locale.
接口概要 接口 说明 LocaleContext Strategy interface for determining the current Locale.TimeZoneAwareLocaleContext Extension ofLocaleContext
, adding awareness of the current time zone.类概要 类 说明 LocaleContextHolder Simple holder class that associates a LocaleContext instance with the current thread.SimpleLocaleContext Simple implementation of theLocaleContext
interface, always returning a specifiedLocale
.SimpleTimeZoneAwareLocaleContext Simple implementation of theTimeZoneAwareLocaleContext
interface, always returning a specifiedLocale
andTimeZone
.