Showing
1 changed file
with
2 additions
and
1 deletions
@@ -93,12 +93,13 @@ public class HostInfoCtrl { | @@ -93,12 +93,13 @@ public class HostInfoCtrl { | ||
93 | 93 | ||
94 | @RequestMapping("/getHostInfoByIps") | 94 | @RequestMapping("/getHostInfoByIps") |
95 | @ResponseBody | 95 | @ResponseBody |
96 | - public BaseResponse<List<HostInfo>> getHostInfoByIps(String ips) throws Exception { | 96 | + public BaseResponse<List<HostInfo>> getHostInfoByIps( @RequestBody String ips) throws Exception { |
97 | List<String> hostIps = JSON.parseArray(ips,String.class); | 97 | List<String> hostIps = JSON.parseArray(ips,String.class); |
98 | log.info("getHostInfoByIps with param is {}", ips); | 98 | log.info("getHostInfoByIps with param is {}", ips); |
99 | List<HostInfo> hostInfos = hostInfoService.getHostInfoByIps(hostIps); | 99 | List<HostInfo> hostInfos = hostInfoService.getHostInfoByIps(hostIps); |
100 | BaseResponse<List<HostInfo>> response = new BaseResponse<List<HostInfo>>(hostInfos); | 100 | BaseResponse<List<HostInfo>> response = new BaseResponse<List<HostInfo>>(hostInfos); |
101 | return response; | 101 | return response; |
102 | + | ||
102 | } | 103 | } |
103 | 104 | ||
104 | 105 |
-
Please register or login to post a comment