@Configuration @ConditionalOnMissingBean(value=org.springframework.context.MessageSource.class, search=CURRENT) @Conditional(value=MessageSourceAutoConfiguration.ResourceBundleCondition.class) @EnableConfigurationProperties public class MessageSourceAutoConfiguration extends Object
Auto-configuration
for MessageSource
.Modifier and Type | Class and Description |
---|---|
protected static class |
MessageSourceAutoConfiguration.ResourceBundleCondition |
Constructor and Description |
---|
MessageSourceAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.MessageSource |
messageSource() |
MessageSourceProperties |
messageSourceProperties() |
@Bean @ConfigurationProperties(prefix="spring.messages") public MessageSourceProperties messageSourceProperties()
@Bean public org.springframework.context.MessageSource messageSource()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.