例如下面中有多种环境:dev、test、prod 等配置参数,运行服务时候指定其中一种
VM options:内部配置参数
-Dspring.config.name=bootstrap -Dspring.spring.profiles=dev
# 也可以指定端口
-Dserver.port=8080 -Dspring.profiles.active=test -Ddebug
参考链接:IntelliJ IDEA 中SpringBoot对Run/Debug Configurations配置 SpringBoot热部署_idea bootrun debug运行-CSDN博客