摘要: nacos作为注册中心指定命名空间,配置如下: 但是启动之后发现服务都默认注册到了public这个命名空间下面,也就是指定的命名空间不生效 这是因为注册中心使用的命名空间的配置不是nacos.config.namespace这个配置,需要添加配置: dubbo.registry.parameters 阅读全文
posted @ 2019-09-20 18:29 SheaChen 阅读(13190) 评论(1) 推荐(2) 编辑
摘要: 1、nacos服务端部署 参见官方文档:https://nacos.io/zh cn/docs/quick start.html 2、nacos配置中心功能使用 在pol文件中添加依赖: 在启动类中使用@NacosPropertySources将配置引入到项目中 使用@NacosValue("${k 阅读全文
posted @ 2019-09-20 18:23 SheaChen 阅读(8134) 评论(2) 推荐(1) 编辑