@Configuration
@ConditionalOnMissingBean(value=org.springframework.context.MessageSource.class,
search=CURRENT)
@AutoConfigureOrder(value=-2147483648)
@AutoConfigureBefore(value=org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration.class)
@EnableConfigurationProperties
@Conditional(value=MessageSourceConfiguration.ResourceBundleCondition.class)
public class MessageSourceConfiguration
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MessageSourceConfiguration.ResourceBundleCondition |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BASE_MESSAGES |
static java.lang.String |
CORE_MESSAGES |
| Constructor and Description |
|---|
MessageSourceConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.context.MessageSource |
messageSource(org.springframework.context.ApplicationContext applicationContext) |
org.springframework.boot.autoconfigure.context.MessageSourceProperties |
messageSourceProperties(org.springframework.context.ApplicationContext applicationContext) |
public static final java.lang.String BASE_MESSAGES
public static final java.lang.String CORE_MESSAGES
@Bean @ConfigurationProperties(prefix="spring.messages") public org.springframework.boot.autoconfigure.context.MessageSourceProperties messageSourceProperties(org.springframework.context.ApplicationContext applicationContext)
@Bean public org.springframework.context.MessageSource messageSource(org.springframework.context.ApplicationContext applicationContext)