首先命名格式要按照规范来
第一个配置文件、application-dev.yml中的配置
server:
port: 8080
第二个配置文件、application-test.yml中的配置
server:
port: 8081
第三个配置文件、application.yml 用这个总的yml文件来确定使用哪个yml文件
#使用本地开发环境
spring:
profiles:
active: dev #用这个配置值来确定激活哪个配置文件
首先命名格式要按照规范来
第一个配置文件、application-dev.yml中的配置
server:
port: 8080
第二个配置文件、application-test.yml中的配置
server:
port: 8081
第三个配置文件、application.yml 用这个总的yml文件来确定使用哪个yml文件
#使用本地开发环境
spring:
profiles:
active: dev #用这个配置值来确定激活哪个配置文件