How can I get profile specific pom properties in web.xml in Spring?

Sunday, July 6, 2014

I am using a service in my spring project.I have following code in my web.xml:-



<init-param>
<param-name>prerenderServiceUrl</param-name>
<param-value>http://10.0.0.45:3000</param-value>
</init-param>


I have 3 profiles in my pom.xml: staging,development & production:

I am looking for the best practices to get <my.service.url> in my web.xml:



<profile>
...
<properties>
...
<my.service.url>http://10.0.0.45:300</my.service.url>
...
</properties>
</profile>






http://ift.tt/1m5nAYr