【发布时间】:2014-08-26 23:23:55
【问题描述】:
我在我的 spring 项目中使用了一项服务。我的 web.xml 中有以下代码:-
<init-param>
<param-name>prerenderServiceUrl</param-name>
<param-value>http://10.0.0.45:3000</param-value>
</init-param>
我的 pom.xml 中有 3 个配置文件:暂存、开发和生产:
我正在寻找在我的 web.xml 中获取 my.service.url> 的最佳做法:
<profile>
...
<properties>
...
<my.service.url>http://10.0.0.45:300</my.service.url>
...
</properties>
</profile>
【问题讨论】:
标签: java maven spring-mvc pom.xml web.xml