1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.java110.service.controller;
 
import com.java110.common.exception.NoAuthorityException;
import com.java110.common.exception.SMOException;
import com.java110.core.base.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
 
/**
 * 错误页面
 * Created by wuxw on 2018/5/2.
 */
@Controller
public class ErrorController extends BaseController {
 
    @RequestMapping(path = "/error")
    public String error(Model model,@RequestParam("code") String code,@RequestParam("msg") String msg) {
            model.addAttribute("code",code);
            model.addAttribute("msg",msg);
            //3.0 查询各个系统调用量
            return "error";
    }
}