springcloud整合nacos启动时报错‘com.netflix.client.config.IClientConfig‘ that could not be found

异常信息

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.

解决方法
在配置类里装配一个bean

    @Bean
    public IClientConfig iClientConfig() {
        return new DefaultClientConfigImpl();
    }
上一篇:错误解决:Could not install packages due to an EnvironmentError


下一篇:Jmeter点击打开文件和保存测试计划时会报错"Could not instantiate class: kg.apc.jmeter.reporters.LoadosophiaUploade