[스프링 부트 오류해결] required a bean of type 'org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository' that could not be found.

뿌이·2022년 3월 14일
2

오류해결

목록 보기
21/53

Description:

Parameter 1 of method springSecurityFilterChain in com.dream.gatewayservice.config.
GatewayWebSecurityConfiguration 
required a bean of type 'org.springframework.security.oauth2.client.registration.
ReactiveClientRegistrationRepository' that could not be found.


Action:

Consider defining a bean of type 'org.springframework.security.oauth2.client.registration.
ReactiveClientRegistrationRepository' in your configuration.

이런 오류가 떴다...
진짜 구글링 엄청햇는데 더럽게 안나옴.

원인은 build.gradle에

implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'

에 있다.
이 두개를 같이쓰면 절대절대 안된다는 것..
같이 쓰면 뭔가 oauth2-client-registration 부분에서 겹치나보다..
어쨌든 그래서 web지워주고 web관련된 함수들도 다 지워버리고
다른방식으로 구현하니 해결됐다.

profile
기록이 쌓이면 지식이 된다.

0개의 댓글