Guest User

Untitled

a guest
Jul 30th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.89 KB | None | 0 0
  1. <profiles>
  2.     <profile>
  3.         <id>devel</id>
  4.         <properties>
  5.             <appPropVer>DEV</appPropVer>
  6.         </properties>
  7.     </profile>
  8. </profiles>
  9.  
  10. plugins (pom.xml):
  11.  
  12. <plugin>
  13.     <groupId>org.apache.maven.plugins</groupId>
  14.     <artifactId>maven-war-plugin</artifactId>
  15.     <version>2.6</version>
  16.     <configuration>
  17.         <webResources>
  18.             <resource>
  19.                 <filtering>true</filtering>
  20.                 <directory>src/main/resources/appProperties/${appPropVer}</directory>
  21.                 <includes>
  22.                     <include>**/*.properties</include>
  23.                 </includes>
  24.                 <targetPath>/WEB-INF/classes/appProperties</targetPath>
  25.             </resource>
  26.         </webResources>
  27.     </configuration>
  28. </plugin>
  29.  
  30. servlet context:
  31.  
  32. <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
  33.     <property name="locations">
  34.         <list>
  35.             <value>classpath:appProperties/global.properties</value>
  36.         </list>
  37.     </property>
  38. </bean>
Advertisement
Add Comment
Please, Sign In to add comment