Idea配置springboot多环境的切换的五种方案

一.springBoot启动在Program arguments:输入指令--spring.profiles.active=dev

Idea配置springboot多环境的切换的五种方案_第1张图片

 

二. springBoot启动在Active Profiles:输入dev

Idea配置springboot多环境的切换的五种方案_第2张图片

 

三.springBoot启动在Environment variables: 输入spring.profiles.active=dev

Idea配置springboot多环境的切换的五种方案_第3张图片

 

四.maven启动Environment variables: 输入spring.profiles.active=dev

Idea配置springboot多环境的切换的五种方案_第4张图片

 

Idea配置springboot多环境的切换的五种方案_第5张图片

 

五.maven启动Skip tests下输入spring.profiles.active=dev

Idea配置springboot多环境的切换的五种方案_第6张图片

 

你可能感兴趣的:(开发工具)