目录
🍟绊脚石
搭建完gateway,启动程序,爆下面错误~
心里那叫一个苦啊~
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method modifyResponseBodyGatewayFilterFactory 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
🍿巧妙化解
一顿操作后发现:
- 在类路径上找到Spring MVC,目前与Spring Cloud Gateway不兼容。请删除spring-boot-start -web依赖。

文章描述了在搭建SpringCloudGateway时遇到关于ServerCodecConfigurer的错误,原因是SpringMVC与Gateway不兼容。解决方法是移除spring-boot-starter-web和spring-boot-starter-actuator依赖。
最低0.47元/天 解锁文章
1万+

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



