1.创建多个配置文件
2.设置Program arguments(启动参数) --spring.profiles.active=test
--spring.profiles.active=test
3.启动的时候key看到The following profiles are active: test
The following profiles are active: test
IDEA使用技巧
原文:https://www.cnblogs.com/wugang/p/14472164.html