摘要: yaml语法 普通的key value, name: yang 对象 student: {name: yang, age: 12} 数组 pets: [cat,dog] 可以注入到配置类中 使用yaml注入对象。在对象类上添加@ConfigurationProperties(prefix = "xx 阅读全文
posted @ 2020-05-21 08:53 yangzixiongh 阅读(373) 评论(0) 推荐(0) 编辑