yml yaml配置示例

#普通数据的配置
name: zhangsan
#Map或对象数据的配置
persion:
  age: 18
  addr: beijing
  name:
##行内对象配置
#persion: {name: zhangsan,age: 18,addr: beijing}

#配置数据,集合(普通字符串)
city:
  - beijing
  - shanghai
  - tianjing
#city: [beijing,tianjin,chongqing,shanghai]

#配置数据,集合(对象数据)
students:
  - name: liuyifei
    age: 16
  - name :liushishi
    age: 18
#students: [{name: liuyifei,age: 16},{name: liushishi,age: 18}]


 

你可能感兴趣的:(springboot)