#
luxiaotao1123
2020-11-19 f1750b606591a364aa59904628c7395c0c4ea71b
#
1个文件已修改
9 ■■■■■ 已修改文件
src/main/java/com/zy/common/web/RouterController.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/web/RouterController.java
@@ -2,6 +2,7 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletResponse;
@@ -42,10 +43,12 @@
        }
    }
    @RequestMapping("/monitor")
    public void monitor(HttpServletResponse response) {
    @RequestMapping("/monitor/{cnrId}")
    public void monitor(@PathVariable("cnrId") Integer cnrId,
                        HttpServletResponse response) {
        try{
            response.sendRedirect(contextPath+"/views/monitor/monitor.html");
            String append = cnrId==null?"":("?crnId="+cnrId);
            response.sendRedirect(contextPath+"/views/monitor/monitor.html"+append);
        } catch (Exception ex){
            ex.printStackTrace();
        }