Spring Cloud 오류 정리

Spring Cloud 오류 정리
오류
Parameter 0 of method modifyRequestBodyGatewayFilterFactory in org.springframework.cloud.gateway.config.GatewayAutoConfiguration required a bean of type 'org.springframework.http.codec.ServerCodecConfigurer' that could not be found.

  • 원인 의존 충돌, spring - cloud - starter - gateway 와 spring - boot - starter - web 과 spring - boot - starter - webflux 의존 충돌
  • 해결
  • <dependency>
        <groupId>org.springframework.cloudgroupId>
        <artifactId>spring-cloud-starter-gatewayartifactId>
        <exclusions>
            <exclusion>
                <groupId>org.springframework.bootgroupId>
                <artifactId>spring-boot-starter-webartifactId>
            exclusion>
            <exclusion>
                <groupId>org.springframework.bootgroupId>
                <artifactId>spring-boot-starter-webfluxartifactId>
            exclusion>
        exclusions>
    dependency>
    
  • 주의 , gateway , webflux web , , , parent , parent web webflux
  • 좋은 웹페이지 즐겨찾기