springboot中的yml配置

格式:( k:[空格] v ) 綁定到Bean 1.加上 @ConfigurationProperties(prefix = 「person」) 2.加上**@Component**,將Bean加入容器。
相關文章
相關標籤/搜索