异常信息
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();
}