Error

[Error] Method springSecurityFilterChain in org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration required a bean of type 'org.springframework.security.oauth2.client.registration.ClientRegistrationRepository' that cou..

728x90
반응형

  • 소셜 로그인 기능 구현하고 집에와서 pull 받아 실행하려니 위와같은 에러가 발생했다

 

  • OAuth에 사용된 아이디와 비밀 코드를 gitignore로 등록해두었기 때문에 발생
  • application-oauth.properties를 생성해주면 해결 가능하다