Open licoco opened 5 years ago
@licoco com.alibaba.nacos.client.naming.net.NamingProxy#registerService
params.put("cluster", JSON.toJSONString(instance.getCluster()));
这个参数400 bad request
请参考我提的issue,将依赖调整一下 `
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
<version>0.6.2</version>
</dependency>
`
改完了还是不行啊
debug一下,可以看到每一步变量的值。
在 2021-08-24 19:01:53,"huangsanyeah" @.***> 写道:
改完了还是不行啊
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
@NacosInjected private NamingService namingService;
@PostConstruct public void registerInstance() throws NacosException, UnknownHostException { namingService.registerInstance(applicationName, InetAddress.getLocalHost().getHostAddress(), serverPort,"DEFAULT"); }
通过NamingService 对象来调用注册而不是 Nacos Open API 来注册会失败,请问下是什么 原因
NamingService 也是调用这个接口,参数会生成一些默认填充??