Error
[Error]nested exception is java.io.FileNotFoundException: class path resource [api.properties] cannot be opened because it does not exist
오선지♬
2022. 1. 19. 10:22
728x90
반응형
<오류내용 >
ERROR: org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'api': Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [api.properties] cannot be opened because it does not exist
<해결방법>
api.properties 파일을 resource폴더에 만들어준 후, 받았던 지도 api key를 넣어주고
다시 실행하니 정상로딩되었다.
지도 api key는 무단사용될 수 있어서 github에 올려놓지 않았어서 그 파일이 찾지 못한다는 오류였다.
728x90
반응형