首页 > 编程语言 > 详细

spring 项目分开发和生产环境

时间:2018-02-09 16:32:06      阅读:222      评论:0      收藏:0      [点我收藏+]

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>

  

spring 项目分开发和生产环境

原文:https://www.cnblogs.com/hoge66/p/8435874.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!