1、pom 文件修改
<profile>
<!-- 本地开发环境 -->
<id>dev</id>
<properties>
<profiles.active>dev</profiles.active>
<webXmlPath>src/main/filters/dev/web.xml</webXmlPath>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<!-- 生产环境 -->
<id>prod</id>
<properties>
<profiles.active>prod</profiles.active>
<webXmlPath>src/main/filters/prod/web.xml</webXmlPath>
</properties>
</profile>