당신이 이렇게 등록 정보 파일을 사용할 필요하지 런타임에 또 다른 한개로 전환되지 않도록 매우 높습니다 서로 다른 환경을 사용하는 경우.
maven을 사용하는 경우 환경에 다른 프로필을 정의하고 각 프로필에서 변경할 매개 변수를 설정할 수 있습니다.
당신의 web.xml
<context-param>
<param-name>myparam</param-name>
<param-value>${my.param}</param-value>
</context-param>
에서 당신의 pom.xml
<profile>
<id>env1</id>
<properties>
<my.param>myParamValue<my.param/>
</properties>
</profile>
<profile>
<id>env2</id>
<properties>
<my.param>myParamValue2<my.param/>
</properties>
</profile>
에서
그리고 여기
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
</configuration>
</plugin>
받는다는 전쟁 플러그인의 배포 설명자에 필터링을 구성하면 솔루션입니다 : http://stackoverflow.com/questions/12099008/how-to-include-values-from-properties-file-into-web-xml/12099830#12099830 – lancha90