• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

application 이 실행되지 않습니다... .m2/repository 에러 발생

21.12.10 08:51 작성 조회수 372

0

 

 

서버실행시 에러 로그입니다.

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.security.oauth2.client.registration.ClientRegistrationRepository' available

 

project structure 설정 repository 에러 발생 !!      

 

.m2/repository 폴더를 삭제하고 의존성 파일들을 다시 받아도 에러가 사라지지 않습니다.

spring boot version 을 2.5 까지 낮춰보았는데도 현상은 같습니다.

원인을 알려주실수 있을까요?

원본 파일은  github  https://github.com/castinglife/springboot-oauth-test 에 있습니다.

답변 1

답변을 작성해보세요.

0

jetbrain tool box 를 완전히 닫았다가 열었더니 에러가 모두 사라졌습니다. ^^

intellij 문제 였네요..  이걸로 오늘 반나절을 다 보낸것 같습니다. ㅠ.ㅠ

 

maven, gradle 모두 잘 돌아 갑니다..

 

위와 같은 문제가 발생하시는 분이 있으시면 jetbrain tool box 로그인후에도 안되시면 tool box를

종료했다가  다시 실행해 보시거나.. 

그래도 안되시면 

 

.m2/repository 폴더를 삭제하시고 maven 새로고침.. ( repository(의존성)가 다시 다운 받아 집니다.. )

그래도 안되시면 tool box 사용하심 tool box 종료후 재시작

intellij 만 설치하셨으면 intellij 만 완전 종료후 다시 열면 잘되실것 같습니다.. 

잘 해결되어서 다행이네요. 정말 가끔 의존성 라이브러리를 받아오는 과정에서 그런 문제가 생기는데 그럴땐 공유해주신대로 로컬 의존성 저장소를 삭제하고 다시 내려받도록 하는 것이 좋은 해결 방법입니다. 감사합니다.