2015-01-18 1 views
0

스프링 애플리케이션 컨텍스트 파일을 파일 및 파일이 아래에 있습니다있는 application.properties :문제 로딩 특성이 봄에

src/main/resources/META-INF/spring 

내가 속성을로드 할 때하는 파일 :

<context:property-placeholder local-override="true" location="classpath:/META_INF/spring/application.properties"/> 

얻기 오류 :

class path resource [META_INF/spring/application.properties] cannot be opened because it does not exist 

나는 또한 시도했다 :

<context:property-placeholder local-override="true" location="classpath:application.properties"/> 

<context:property-placeholder local-override="true" location="application.properties"/> 
+0

'META-INF = META_INF'. –

+0

오타가있는 것 같습니다. META_INF 대신 META-INF를 사용해야합니다. – SMA

답변

1

보십시오 : 대신

<context:property-placeholder local-override="true" location="classpath:/META-INF/spring/application.properties"/> 

!

<context:property-placeholder local-override="true" location="classpath:/META_INF/spring/application.properties"/>