application-dev.yml : 开发环境
application-prod.yml :生产环境
application-test : 测试环境
spring:
profiles: dev
server:
port: 9001
spring:
profiles: test
server:
port: 9002
spring:
profiles: proc
server:
port: 9003
指明使用的是 dev(开发环境)下的配置
spring:
profiles:
active: dev