0

Git 저장소에서 프로젝트를 가져 왔습니다. ESB에 배포하려고하면 배포가 실패하고 등록 정보 파일을 찾을 수 없다고보고합니다. //org.springframework.beans.factory.BeanInitializationException : 속성을로드 할 수 없습니다. 중첩 예외는 java.io.FileNotFoundException : 클래스 경로 리소스 [config.properties]가 존재하지 않기 때문에 열 수 없습니다. at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBean 팩토리 (PropertyResourceConfigurer.java:89) ~ [spring-beans-4.1.6.RELEASE.jar : 4.1.6.RELEASE] 에서 org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors (PostProcessorRegistrationDelegate.java:265) ~ [spring-context-4.1.6. RELEASE.jar : 4.1.6.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors (PostProcessorRegistrationDelegate.java:162) ~ [spring-context-4.1.6.RELEASE.jar : 4.1.6.RELEASE] ]Filenot Mule 3.8의 .properties 파일에서로드하는 동안 예외가 발생했습니다.

여러 환경 세부 정보에 대한 속성 파일을 사용하고 있으며 환경 이름을 기반으로 파일을 가져 와서 src/main/resources 폴더 아래에 복사하고 있습니다. 그러나 비록 파일이 제대로 픽업되고 src/main/resources 위치에 복사되고 있음을 볼 수 있습니다. 다른 사람들이 성공적으로 배포 한 것 같습니다. 같은 결과를 가지고 src/main/resources 폴더로 속성 파일을 옮겨 보았습니다. ESB가/src/main/resources에있는 등록 정보 파일을 찾을 수없는 이유는 무엇입니까? 여기

는 코드입니다 : 클래스 패스에 config.properties 파일을 유지하고 아래로 참조

답변

0

<context:property-placeholder location="config.properties" /> 
관련 문제