springboot配置文件
yaml:
1.kv之间要有空格,形如:k: v
2.要严格的对齐(同一类下的属性要对齐)
3.value加单引号不转义,加双引号转义
4.数组的格式如下:
4.1Map<String, Object> score
score: {english: 80,math: 90}
4.2Set<Double> salarys
salarys:
- 9999.98
- 9999.99
4.3Map<String, List<Pet>> allPets的形式为
allPets:
sick:
- {name: cat,weight: 99.99}
- name: dog
weight: 88.88
- name: s
weight: 77.77
health:
- {name: cat,weight: 99.99}
- name: dog
weight: 88.88
- name: s
weight: 77.77
浙公网安备 33010602011771号