gateway的报错

今天在在搭建springcloud gateway的时候,启动gateway一直会报错,

错误:

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.

网上查了原因是说和web包冲突,因为gateway用的是webflex,会和web包中有冲突,然而我的父工程中是没有web包的,

然后我将父工程中依赖的包全部去掉,只剩下最boot的包和eureka-client的包,如下图:

结果还是会报错;然后我在gateway的项目中的父依赖修改成springboot的依赖,该工程就自己会好了,如下图:

具体原因还没找,我现在这里记下,过2天来看看

问题的报错信息是"Connection refused: no further information: localhost/127.0.0.1:8501"。这个错误通常表示连接被拒绝,没有进一步的信息可以提供。根据引用中的报错信息,可以看出这是一个关于Redis连接的错误。 根据引用中提到的解决方法,这个错误可能是因为本地计算机上没有安装或运行Redis服务导致的。要解决这个问题,您可以尝试安装并运行Redis服务。可以通过在网上搜索"安装Redis教程"来找到适合您的操作系统的安装指南。 另外,根据引用的转载文章,您可能还可以在该文章中找到有关解决此问题的更多详细信息和指导。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [jeecgboot报错信息 Connection refused: no further information: /127.0.0.1:6379](https://blog.csdn.net/weixin_53603040/article/details/122615385)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Connection refused: no further information: localhost/127.0.0.1:6379的排错](https://blog.csdn.net/qq_39505065/article/details/108463732)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值