routers:com.everstar.mobile.service.INetEventService:1.0.0:  
这个地方正常了,
调用时206还是会执行
我的配置文件如下

> nacos.address = 192.168.1.199:8848
> nacos.dataId = dubbo-EsMobileClientLauncher-cousumer
> nacos.namespace = fd4c2b5d-3649-4558-b85f-50b2f0eb6c4a
> dubbo.registry.address = 
> nacos://192.168.1.199:8848?namespace=fd4c2b5d-3649-4558-b85f-50b2f0eb6c4a



我的启动注解如下
```
@SpringBootApplication
@Configuration
//@EnableCaching
//@EnableSwagger2
@EnableDubbo(scanBasePackages = "com") 
@EnableNacosConfig(globalProperties = @NacosProperties(serverAddr = 
"${nacos.address}",namespace="${nacos.namespace}"))
@EnableNacosDiscovery(globalProperties = @NacosProperties(serverAddr = 
"${nacos.address}",namespace="${nacos.namespace}"))
@NacosPropertySource(dataId = "${nacos.dataId}",autoRefreshed=true)
public class EsMobileClientLauncherApplication
```

_不生效的根本原因应该是 nacos 作为注册中心的时候,消费者端没有订阅 routers:xxx 节点导致的;2.7 
以上的版本建议使用动态配置中心来做服务治理_
消费者端没有订阅 routers:xxx 节点  这个怎么订阅,上面的配置不能做到订阅么?
动态配置中心,nacos本身就应该算使用了动态配置中心了吧



[ Full content available at: https://github.com/apache/dubbo-admin/issues/522 ]
This message was relayed via gitbox.apache.org for 
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to