taoshuangxi

Results 1 issues of taoshuangxi

**问题:** 在示例的基础上,通过NamingService.registerInstance 方法无法向nacos注册服务,经过单步调试,在NamingProxy.registerService 中 params.put("cluster", JSON.toJSONString(instance.getCluster())); //这一行有问题 this.reqAPI("/nacos/v1/ns/instance", params, (String)"PUT"); 在reqAPI方法中http请求的响应提示cluster参数不合法 **解决方法** 单步调试了一下spring cloud示例,发现spring cloud中引入的nacos-client为0.6.2,而spring boot中引入nacos-client为0.2.1-RC1 调整了一下依赖的版本,排除原来nacos-client 0.2.1-RC1的版本,重新引入0.6.2版本,问题得到解决, ` com.alibaba.boot nacos-discovery-spring-boot-starter 0.2.1 com.alibaba.nacos nacos-client com.alibaba.nacos nacos-client 0.6.2 ` 请及时调整