Dans un fichier de printemps: jeTomcat + printemps et variables d'environnement
<bean id="propertyConfigurer" class="org.myapp.MyConfigurator">
<property name="locations">
<list>
<value>classpath:configuration-${env}.properties</value>
</list>
</property>
</bean>
la variable $ {env} est défini dans le profil de Maven. Mais quand je cours d'éclipse l'application dans Tomcat 6 (publié) il ne regarde pas dans maven. Alors, comment puis-je définir la variable pour Tomcat?
Merci
Randomize
http://stackoverflow.com/questions/3965446/how-to-read-system -environment-variable-in-spring-applicationcontext –