try {\r
ObjectMapper mapper = new ObjectMapper();\r
String content = mapper.writeValueAsString(entity);\r
- HttpPost httpPost = new HttpPost("http://" + MicroServiceConfig.getMsbServerAddr()\r
- + ":8086/api/microservices/v1/services?createOrUpdate=false");\r
+ HttpPost httpPost = new HttpPost(MicroServiceConfig.getMsbServerAddr()\r
+ + "/api/microservices/v1/services?createOrUpdate=false");\r
if (StringUtils.isNotEmpty(content)) {\r
httpPost.setEntity(new ByteArrayEntity(content.getBytes()));\r
}\r