gateway 网关版本冲突问题

1、spring-cloud版本

Finchley.RELEASE

2、sprring-boot版本

2.0.3.RELEASE

3、错误描述

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-05-21 16:53:50.138 ERROR 15308 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

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.


Action:

Consider defining a bean of type 'org.springframework.http.codec.ServerCodecConfigurer' in your configuration.

 

4、原因


    org.springframework.boot
    spring-boot-starter-web


     org.springframework.cloud
     spring-cloud-starter-gateway
 

版本冲突

5、解决

可以删除:


  org.springframework.boot
  spring-boot-starter-web

 

你可能感兴趣的:(spring-cloud)