出错显示:
ot registered via @EnableConfigurationProperties, marked as Spring component, or scanned via @ConfigurationPropertiesScan
解决办法:
在@ConfigurationProperties
前面加注解@Component
@Component
@ConfigurationProperties(prefix = "girl")
出错显示:
ot registered via @EnableConfigurationProperties, marked as Spring component, or scanned via @ConfigurationPropertiesScan
解决办法:
在@ConfigurationProperties
前面加注解@Component
@Component
@ConfigurationProperties(prefix = "girl")