@Configuration @ConditionalOnMissingBean(value=org.springframework.context.MessageSource.class, search=CURRENT) @AutoConfigureOrder(value=-2147483648) @Conditional(value=MessageSourceAutoConfiguration.ResourceBundleCondition.class) @EnableConfigurationProperties 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 |
---|---|
MessageSource |
messageSource() |
MessageSourceProperties |
messageSourceProperties() |
@Bean @ConfigurationProperties(prefix="spring.messages") public MessageSourceProperties messageSourceProperties()
@Bean public MessageSource messageSource()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.