spring

spring cloud gateway+keycloak 오류 tokenRelayGatewayFilterFactory could not be registered

초이짬 2021. 11. 19. 14:19
728x90

스프링 클라우드 게이트웨이랑 키클락 연동 하고 있는데 런타임 오류가 

 

org/springframework/cloud/security/oauth2/gateway/TokenRelayAutoConfiguration.class], could not be registered

 

이런식으로 난다 pom 파일에

 


<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-oauth2-client -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-oauth2-client</artifactId>
</dependency>

<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-security -->
 <dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-security</artifactId>
    <version>2.2.5.RELEASE</version>
</dependency>

 

이거 2개 넣었는데 검색해보니 아래에 spring-cloud-starter-security 이거 지우라고 해서 지우니 잘된다..

728x90