SpringCould 整合 Alibaba Nacos 报错
作者:
吉他手_c156 | 来源:发表于
2020-10-01 17:28 被阅读0次
启动报错
- 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")
本文标题:SpringCould 整合 Alibaba Nacos 报错
本文链接:https://www.haomeiwen.com/subject/toamuktx.html
网友评论