SpringCould 整合 Alibaba Nacos 报错
2020-10-01 本文已影响0人
吉他手_c156
启动报错
- 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.
刚开始这样解决的 com.dubbo 是我的包路径
@SpringBootApplication(scanBasePackages = "com.dubbo",
scanBasePackageClasses = com.netflix.client.config.DefaultClientConfigImpl.class)
后开发现只配置 scanBasePackages 也可以
@SpringBootApplication(scanBasePackages = "com.dubbo")