SpringBoot 单元测试 指定 环境

如上图所示,在配置窗口中添加--spring.profiles.active=dev,就可以了。

相关推荐
梁云亮1 年前
SpringBoot 多模块 多环境 项目 单元测试
spring boot·单元测试·多模块·多环境