@AutoConfiguration(before=org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration.class)
@ConditionalOnMissingBean(name="messageSource",
search=CURRENT)
@AutoConfigureOrder(value=-2147483648)
@Conditional(value=CustomMessageSourceAutoConfiguration.ResourceBundleCondition.class)
@EnableConfigurationProperties
public class CustomMessageSourceAutoConfiguration
extends Object
Auto-configuration for MessageSource.| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
CustomMessageSourceAutoConfiguration.ResourceBundleCondition |
| 构造器和说明 |
|---|
CustomMessageSourceAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.context.MessageSource |
messageSource(org.springframework.boot.autoconfigure.context.MessageSourceProperties properties) |
org.springframework.boot.autoconfigure.context.MessageSourceProperties |
messageSourceProperties() |
@Bean @ConfigurationProperties(prefix="spring.messages") @ConditionalOnMissingBean public org.springframework.boot.autoconfigure.context.MessageSourceProperties messageSourceProperties()
@Bean public org.springframework.context.MessageSource messageSource(org.springframework.boot.autoconfigure.context.MessageSourceProperties properties)
Copyright © 2023. All rights reserved.