linzhijie
2021-04-12 3a8e1524dcf0eeb610d38123d5f0a3ef838379cd
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";
    }
}