首页 > 其他分享> > springcloud整合nacos启动时报错‘com.netflix.client.config.IClientConfig‘ that could not be found
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();
}
标签:netflix,springcloud,could,client,bean,IClientConfig,com,config 来源: https://blog.csdn.net/m0_46267375/article/details/121570821