Showing
1 changed file
with
3 additions
and
2 deletions
@@ -91,8 +91,9 @@ public class OuterIntfCtrl { | @@ -91,8 +91,9 @@ public class OuterIntfCtrl { | ||
91 | 91 | ||
92 | @RequestMapping("/getHostIpByTags") | 92 | @RequestMapping("/getHostIpByTags") |
93 | @ResponseBody | 93 | @ResponseBody |
94 | - public List<String> getHostIpByTags(String tags) { | ||
95 | - return httpClient.defaultPost("/hostInfo/getHostIpByTags?tags="+tags,null,List.class); | 94 | + public String getHostIpByTags(String tags) { |
95 | + List<String> ips= httpClient.defaultPost("/hostInfo/getHostIpByTags?tags="+tags,null,List.class); | ||
96 | + return JSON.toJSONString(ips); | ||
96 | } | 97 | } |
97 | 98 | ||
98 | 99 |
-
Please register or login to post a comment