Authored by qinchao

提供接口方法

@@ -156,7 +156,9 @@ public class MaliciousIpController { @@ -156,7 +156,9 @@ public class MaliciousIpController {
156 return rtnBaseResponse; 156 return rtnBaseResponse;
157 } 157 }
158 158
159 - private List<String> getNginxHost(){ 159 + @RequestMapping("/getNginxHost")
  160 + @ResponseBody
  161 + public List<String> getNginxHost(){
160 List<HostInfo> hostInfoList= hostInfoService.getHostInfosByTag("upstream-switch"); 162 List<HostInfo> hostInfoList= hostInfoService.getHostInfosByTag("upstream-switch");
161 List<String> ips=new ArrayList<>(); 163 List<String> ips=new ArrayList<>();
162 if(hostInfoList!=null&&hostInfoList.size()>0){ 164 if(hostInfoList!=null&&hostInfoList.size()>0){