Closed binchoo closed 3 years ago
연관 이슈: https://github.com/jojoldu/freelec-springboot2-webservice/issues/253
[이슈 원인]
https://github.com/binchoo/spring-boot-210523/issues/17#issue-915009011 에 언급한 바와 같이, application-oauth.properties
내용이 없었기 때문
[특이 사항] 해당 원인 해결을 위해 당연히 oauth 설정 파일을 추가하였으나 몇 시간 동안 스프링이 시동되지 않았다.
다음 절차로 해결하였다.
SecurityConfig: WebSecurityConfigurerAdapter
클래스의 필드로 ClientRegistrationRepository
객체를 하나 선언하여 빈 주입을 의도한다.application-oauth.properties
내용이 완전 초기화가 되었다!?
챕터: #12
[이슈 내용] Application 실행 시,
ClientRegistrationRepository
빈 주입을 받을 수 없다고 함.[이슈 원인] 의심: .gitignore에 의해
application-oauth.properties
가 지금 컴퓨터에 없기 때문에?