错误描述
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.
错误原因
gateway为了使用webflux进行异步非阻塞模型的实现,提高效率,就与web冲突了,去掉web包后启动
解决方案
在pom.xml文件中,将web依赖注释掉