springboot项目多个配置文件,本地调试指定配置文件

如图,当项目有多个application配置文件时,在本地调试如何指定运行的配置文件

如下图,在run/debug configurations配置中 -> Spring Boot参数 -> Active profiles中填写指定的配置文件

 

posted @ 2022-03-23 16:54  豆芽花花儿酱  阅读(573)  评论(0编辑  收藏  举报