解决:Parameter 0 of method ribbonServerList in com.alibaba.cloud.nacos.ribbon.NacosRibbonClientConfigu

概述

Description:

Parameter 0 of method ribbonServerList in com.alibaba.cloud.nacos.ribbon.NacosRibbonClientConfiguration required a bean of type 'com.netflix.client.config.IClientConfig' that could not be found.


Action:

Consider defining a bean of type 'com.netflix.client.config.IClientConfig' in your configuration.

在微服务项目中 启动springboot项目报错Parameter 0 of method ribbonServerList in

com.alibaba.cloud.nacos.ribbon.NacosRibbonClientConfigu Consider defining a bean of type

'com.netflix.client.config.IClientConfig' in your configuration.

它的意思就是我们少了这个bean 

原因

启动类放错位置了 要放在目录的第二层

解决方案

吧启动类放在目录的第二层

(不要去尝试这个bean 没有必要)

posted @   陶然同学  阅读(482)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
点击右上角即可分享
微信分享提示