类 MessageSourceAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration
@Configuration @ConditionalOnMissingBean(value=org.springframework.context.MessageSource.class, search=CURRENT) @Conditional(ResourceBundleCondition.class) @EnableConfigurationProperties @ConfigurationProperties(prefix="spring.messages") public class MessageSourceAutoConfiguration extends Object
Auto-configuration
forMessageSource
.
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected static class
MessageSourceAutoConfiguration.ResourceBundleCondition
构造器概要
构造器 构造器 说明 MessageSourceAutoConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getBasename()
int
getCacheSeconds()
Charset
getEncoding()
boolean
isAlwaysUseMessageFormat()
boolean
isFallbackToSystemLocale()
org.springframework.context.MessageSource
messageSource()
void
setAlwaysUseMessageFormat(boolean alwaysUseMessageFormat)
void
setBasename(String basename)
void
setCacheSeconds(int cacheSeconds)
void
setEncoding(Charset encoding)
void
setFallbackToSystemLocale(boolean fallbackToSystemLocale)
构造器详细资料
MessageSourceAutoConfiguration
public MessageSourceAutoConfiguration()
方法详细资料
messageSource
@Bean public org.springframework.context.MessageSource messageSource()
getBasename
public String getBasename()
setBasename
public void setBasename(String basename)
getEncoding
public Charset getEncoding()
setEncoding
public void setEncoding(Charset encoding)
getCacheSeconds
public int getCacheSeconds()
setCacheSeconds
public void setCacheSeconds(int cacheSeconds)
isFallbackToSystemLocale
public boolean isFallbackToSystemLocale()
setFallbackToSystemLocale
public void setFallbackToSystemLocale(boolean fallbackToSystemLocale)
isAlwaysUseMessageFormat
public boolean isAlwaysUseMessageFormat()
setAlwaysUseMessageFormat
public void setAlwaysUseMessageFormat(boolean alwaysUseMessageFormat)