application.yml 多环境配置 一、
一、便捷的多环境配置环境 只存在一个application.yml (该特性需要.yml文件 .properties 文件不适用 ) 使用.yml 的特性 (---) 连接符 创建application.yml: 如下#全局设置my: val: aa: 123---spring: profiles: dev#在dev中获取的值是123server: port: 8081---spring: profiles: test#在test中获取