bean of type 'org.springframework.http.codec.ServerCodecConfigurer' that could not be found

前端 未结 2 1044
没有蜡笔的小新
没有蜡笔的小新 2020-12-17 01:36

APPLICATION FAILED TO START


Description:

Parameter 0 of method modifyRequestBodyGatewayFilterFactory in org.springframework.cloud.ga

相关标签:
2条回答
  • 2020-12-17 02:24

    You can try like this:

      compile ('org.springframework.cloud:spring-cloud-starter-gateway'){
            exclude module : 'spring-cloud-starter'
            exclude module : 'spring-boot-starter-webflux'
        }
    
    0 讨论(0)
  • 2020-12-17 02:26

    Try adding the below code. It worked for me

    @Bean
    public ServerCodecConfigurer serverCodecConfigurer() {
       return ServerCodecConfigurer.create();
    }
    
    0 讨论(0)
提交回复
热议问题