格式:( k:[空格] v )

springboot中的yml配置
springboot中的yml配置

springboot中的yml配置
springboot中的yml配置

绑定到Bean

1.加上 @ConfigurationProperties(prefix = “person”)
2.加上**@Component**,将Bean加入容器。

springboot中的yml配置

相关文章: