Authored by qinchao

修改bug

package com.ui.ctrl;
import com.ui.contants.HttpUriContants;
import com.ui.http.HttpRestClient;
import com.ui.model.BaseResponse;
import com.ui.model.req.ZkTreeReq;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
/**
... ... @@ -14,10 +20,20 @@ import org.springframework.web.servlet.ModelAndView;
public class ZkCfgLog4jCtrl {
Logger log = LoggerFactory.getLogger(ZkCfgLog4jCtrl.class);
@Autowired
private HttpRestClient httpClient;
@RequestMapping("/tozkMonitorList4Log4j")
public ModelAndView tozkMonitorList4Log4j() {
return new ModelAndView("zkMonitor/zkMonitorList4Log4j");
}
@RequestMapping("/getRoot4Log4j")
@ResponseBody
public BaseResponse getRoot4Log4j(ZkTreeReq req){
log.info("getRoot4Log4j with req is {}",req);
BaseResponse response=httpClient.defaultPost(HttpUriContants.GET_ZK_TREE_LOG4J, req, BaseResponse.class);
return response;
}
}
... ...
... ... @@ -45,13 +45,7 @@ public class ZkMonitorTreeCtrl {
return response;
}
@RequestMapping("/getRoot4Log4j")
@ResponseBody
public BaseResponse getRoot4Log4j(ZkTreeReq req){
log.info("getRoot4Log4j with req is {}",req);
BaseResponse response=httpClient.defaultPost(HttpUriContants.GET_ZK_TREE_LOG4J, req, BaseResponse.class);
return response;
}
@RequestMapping("/getAll")
@ResponseBody
... ...