@Configuration @ConditionalOnMissingBean(value=org.springframework.context.MessageSource.class) @EnableConfigurationProperties @ConfigurationProperties(prefix="spring.messages") public class MessageSourceAutoConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
MessageSourceAutoConfiguration.ResourceBundleCondition |
Constructor and Description |
---|
MessageSourceAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getBasename() |
int |
getCacheSeconds() |
String |
getEncoding() |
MessageSource |
messageSource() |
void |
setBasename(String basename) |
void |
setCacheSeconds(int cacheSeconds) |
void |
setEncoding(String encoding) |
@Bean public MessageSource messageSource()
public String getBasename()
public void setBasename(String basename)
public String getEncoding()
public void setEncoding(String encoding)
public int getCacheSeconds()
public void setCacheSeconds(int cacheSeconds)
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.