效果图,通过profiles设置环境
在父级pom.xml中添加配置
<profiles><profile><id>dev</id><properties><application.environment>dev</application.environment></properties><activation><activeByDefault>true</activeByDefault></activation></profile><profile><id>test</id><properties><application.environment>test</application.environment></properties></profile></profiles>