일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- spring MVC
- 필터vs인터셉터
- abap value in field Data Class error
- controller
- jpa
- java.lang.AssertionError
- @Controller
- Validation
- 필터의 정의
- 쿠키의 정의
- filter vs interceptor
- Testcode
- 401오류
- .orelseThrow
- n+1
- spring
- 쿠키란
- 세션이란
- MVC
- optional
- 김영한
- application-properties
- springSecurityFilterChain 오류
- 구글 보안 api 활용
- 인터셉터의 정의
- BindingResult
- 세션의 정의
- SpringMVC
- 세션vs쿠키
- 유연한 컨트롤러1 - v5
- Today
- Total
ABAP DUMP ERROR 24시
'org.springframework.security.oauth2.client.registration.ClientRegistrationRepository' 오류 해결 방법 본문
'org.springframework.security.oauth2.client.registration.ClientRegistrationRepository' 오류 해결 방법
이운형 2022. 5. 3. 14:42
1. 해결 방법
application-oauth.properties 로 보안 api 를 받는다고 한다면
application-properties에
spring.profiles.include=oauth
를 기입하도록 하자!
2) application-properties와 application-oauth.properties가 같은 위치에 존재하는지 확인하자!(나는 코딩하다 건드려서 application properties의 위치가 옮겨져 있었다!)
src/main/resources/application.propertiessrc/main/resources/application-oauth.properties
에 위치해 있어야 한다!
2.결론
application-가나다.properties 라고 만들었으면
spring.profiles.include=가나다
로 만들자.
3.오류 내역
Description:
Method springSecurityFilterChain in org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration required a bean of type 'org.springframework.security.oauth2.client.registration.ClientRegistrationRepository' that could not be found.
The following candidates were found but could not be injected:- Bean method 'clientRegistrationRepository' in 'OAuth2ClientRegistrationRepositoryConfiguration' not loaded because OAuth2 Clients Configured Condition registered clients is not available
Action:
Consider revisiting the entries above or defining a bean of type 'org.springframework.security.oauth2.client.registration.ClientRegistrationRepository' in your configuration.
'[WEB]오류들 > Spring_code_error' 카테고리의 다른 글
'springSecurityFilterChain' 오류 (0) | 2022.05.20 |
---|---|
IllegalStateException(ConflictingBeanDefinitionException) (0) | 2022.04.27 |
java.lang.AssertionError: Status 401오류(SPRING_SECURITY) (0) | 2022.04.26 |
@ComponentScan 사용시 NoSuchBeanDefinitionException 오류 (0) | 2022.02.02 |