o.s.b.d.LoggingFailureAnalysisReporte报错
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-06-29 15:26:30.296 ERROR 20832 --- [ 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.Process finished with exit code 1
今天在parent2.1.6.RELEASE , <spring-cloud.version>Greenwich.SR1</spring-cloud.version> 使用spring cloud getway 启动是时候出现这个报错
原因maven使用了这个web依赖,把这个依赖去掉,没有报错
而如果要使用webflux请使用
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>