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
반응형

'Error' 카테고리의 다른 글

[HTML] <input> 테두리 없애기  (0) 2022.01.21
[HTML] disabled 와 readonly  (0) 2022.01.20
[jQuery] $post 로 값넘기기  (0) 2022.01.18
[ORACLE][SQL] JOIN, WHERE 절 뒤 순서  (0) 2022.01.13
[Spring] PropertyNotFoundException 에러  (0) 2022.01.12