springboot中的yml配置

格式:( k:[空格] v ) 绑定到Bean 1.加上 @ConfigurationProperties(prefix = “person”) 2.加上**@Component**,将Bean加入容器。
相关文章
相关标签/搜索