Hi all,
I have the following problem.
we use contextroperty-placeholder to load two properties.
<contextroperty-placeholder location="classpath
roject-default.properties,${projectConfPath}project-specific.properties"/>
The project-default.properties is part of the war file.
The project-specific.properties files is retrieved using as a prefix the system variable projectConfPath.
This enables to use the same war file and deploy it on various servers, overriding only the necessary properties (in project-specific.properties).
Now using Spring 3.0.1 I would like the same when using the @Value annotation. Unfortunately I only seem to find examples for loading a single properties file(using utilroperties).
Is it possible to use @Value annotation and load 2 properties where the latter overrules the first one?
Kind regards,
Nicolas


roperty-placeholder to load two properties.
Reply With Quote
