自动化立体仓库 - WCS系统
#
luxiaotao1123
2020-11-10 ab7c908cd63d5c487791a6a87afa4daf448d9963
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.zy.common.web;
 
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
 
import javax.servlet.http.HttpServletResponse;
 
/**
 * Created by vincent on 2019-07-30
 */
@Controller
public class RouterController {
 
    @Value("${server.servlet.context-path}")
    private String contextPath;
 
    @RequestMapping("/")
    public void index(HttpServletResponse response) {
        try{
            response.sendRedirect(contextPath+"/views/index.html");
        } catch (Exception ex){
            ex.printStackTrace();
        }
    }
 
    @RequestMapping("/login")
    public void login(HttpServletResponse response) {
        try{
            response.sendRedirect(contextPath+"/views/login.html");
        } catch (Exception ex){
            ex.printStackTrace();
        }
    }
 
    @RequestMapping("/control")
    public void control(HttpServletResponse response) {
        try{
            response.sendRedirect(contextPath+"/views/control.html");
        } catch (Exception ex){
            ex.printStackTrace();
        }
    }
 
    @RequestMapping("/monitor")
    public void monitor(HttpServletResponse response) {
        try{
            response.sendRedirect(contextPath+"/views/monitor/monitor.html");
        } catch (Exception ex){
            ex.printStackTrace();
        }
    }
 
}