2つのSpringベースのjarファイル(parent.jarとchild.jar)があります。
parent.jarには、parent_applicationContext.xmlと、以下のようにロードするプロパティファイルがあります。
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:app.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
</bean>
<bean id="appBean" class="com.foo.App" >
<property name="appName" value="${app.name}" />
</bean>
child.jarには、依存関係としてparent.jarが含まれ、独自のapplicationContext.xmlがあります。ただし、child.jarを実行すると、app.propertiesをロードできるparent_applicationContext.xmlが表示されません。
エラーメッセージが表示されます
Invalid bean definition with name 'appBean' defined in class path resource [parent_applicationContext.xml]: Could not resolve placeholder 'app.name'
手がかりはありますか?