常⻅的配置⽂件格式 xml、properties、json、yaml Springboot⾥⾯常⽤xx.yml YAML(Yet Another Markup Language) 写 YAML 要⽐写 XML 快得多(⽆需关注标签或引号)使⽤空格 Space 缩进表示分层,不同层次之间的缩进可以使⽤不同的空格数⽬ 注意:key后⾯的冒号,后⾯⼀定要跟⼀个空格,树状结构 server: port: 8080 //设置启动端⼝号为8080 house: family: name: Doe parents: - John - Jane children: