X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=holmes-actions%2Fsrc%2Fmain%2Fjava%2Forg%2Fopeno%2Fholmes%2Fcommon%2Futils%2FMSBRegisterUtil.java;h=9f66178c3cb2052f487f0ca124e964d7ffe2ecde;hb=1c5dbb19bae635260fdd81615f57242c3ca85ec6;hp=5e806e418f49ec9e13bbd473cc8a0de1a74178f4;hpb=31c419d91ab4f6b5644e1cb9c7a477038fbd3dea;p=holmes%2Fcommon.git diff --git a/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java b/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java index 5e806e4..9f66178 100644 --- a/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java +++ b/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java @@ -40,7 +40,7 @@ public class MSBRegisterUtil { try { ObjectMapper mapper = new ObjectMapper(); String content = mapper.writeValueAsString(entity); - HttpPost httpPost = new HttpPost("http://" + MicroServiceConfig.getMsbServerAddr() + HttpPost httpPost = new HttpPost(MicroServiceConfig.getMsbServerAddr() + "/api/microservices/v1/services?createOrUpdate=false"); if (StringUtils.isNotEmpty(content)) { httpPost.setEntity(new ByteArrayEntity(content.getBytes()));