linzhijie
2021-04-12 c632636e2f5b4188b430f5efc9d9f68c8dbe3d6d
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
package com.ots.project.demo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
 
@Controller
@RequestMapping("/demo/report")
public class DemoReportController {
    private String prefix = "demo/report";
    
    @GetMapping("/echarts")
    public String echarts() {
        return prefix + "/echarts";
    }
    
    @GetMapping("/peity")
    public String peity() {
        return prefix + "/peity";
    }
    
    @GetMapping("/sparkline")
    public String sparkline() {
        return prefix + "/sparkline";
    }
    
    @GetMapping("/metrics")
    public String metrics() {
        return prefix + "/metrics";
    }
}