yaml文件语法:
#普通的key-value写法
name: zhangsan
#对象写法
student:
name: zhangsan
age: 22
#对象行写法
student1: {name: zhangsan,age: 23}
#数组写法
student2:
- zhangsan
- lisi
- wangwu
#数组行写法
student3: [zhangsan,lisi,wangwu]
#springboot多环境端口配置
server:
port: 8081
spring:
profiles:
active: dev
---
server:
port: 8082
spring:
config:
activate:
on-profile: dev
---
server:
port: 8083
spring:
config:
activate:
on-profile: test