springboot指定配置文件

1:新建配置文件 application-dev.yml

2:新建配置文件 application-test.yml

3:编辑配置文件 application.yml

内容:代表使用application-test.yml文件

spring:
  profiles:
    active: test

结构

 

posted @ 2023-05-05 17:32  鸭猪是的念来过倒  阅读(598)  评论(0)    收藏  举报