내 OSGi 번들에 config.properties
이 있습니다. 그러나 OSGi 번들은 그것을 읽을 수 없다. 내가 뭔가은 OSGi처럼 보인다 config.properties
OSGi 번들 읽기 구성 등록 정보
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="config.properties" />
</bean>
을 읽어 봄 사용하고
Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=dao, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException
만 .xml
파일을 읽습니다. 누군가가 어떤 생각을 가지고 있습니까?
config.properties 파일을 찾을 수 없습니다. 번들에 어디에 있습니까? – FrVaBe
META-INF 폴더에 넣었습니다. 그리고 나는 config 파일을 번들 외부에 두는 방법과 전역 설정과 같은 동작을 찾고 싶다. 가능합니까? – snow8261