1.Spring cloud 版本
<spring-cloud.version>Greenwich.M1</spring-cloud.version>
2.Spring boot 版本
<version>2.1.0.RELEASE</version>
出现问题:
1.在搭建Spring cloud Gateway网关时候,出现了以下错误
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.
造成的原因:因为版本jar依赖冲突导致该问题的产生。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
与
<dependency>
<groupId>org

在搭建Spring cloud Gateway时遇到错误,描述为参数0的modifyRequestBodyGatewayFilterFactory方法在GatewayAutoConfiguration中缺少ServerCodecConfigurer类型的bean。该问题可能由版本jar依赖冲突引起。解决方案是检查并解决配置中的版本冲突。
最低0.47元/天 解锁文章
362

被折叠的 条评论
为什么被折叠?



