Hi,
I'm creating a spring project which have dependency with another project.
There's already a PreferencesPlaceholderConfigurer in the dependency project application context.
Is it possible to add a properties file without a need to alter the dependency project?
Here is my application context look like
ProjectA is my dependency and Project B is the one I'm currently creating.
ProjectA application context
...
Code:
<bean id="projectAconfig" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
<property name="locations">
<list>
<value>file:C/ProjectA/config/config.properties</value>
</list>
</property>
</bean>
config.properties
ProjectB application context (where I would like to add another property file
Code:
<import resource="file:C:/projectA/application-context.xml"/>
<bean id="projectBconfig" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
<property name="locations">
<list>
<value>file:C/ProjectB/config/configB.properties</value>
</list>
</property>
</bean>
configB.properties
I have tried this way, but it throws an error said it cannot resolve placeholder.
Can anyone show me how this can be done.
Thanks.