Add the static variable HTTP
[holmes/common.git] / holmes-actions / src / main / java / org / openo / holmes / common / utils / MSBRegisterUtil.java
index 5e806e4..9f66178 100644 (file)
@@ -40,7 +40,7 @@ public class MSBRegisterUtil {
         try {\r
             ObjectMapper mapper = new ObjectMapper();\r
             String content = mapper.writeValueAsString(entity);\r
-            HttpPost httpPost = new HttpPost("http://" + MicroServiceConfig.getMsbServerAddr()\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