lxw
2023-05-17 fc2173606fd7b8dc3e3a6b5fec7f82871e5fdc43
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
package com.whyc.controller;
 
import com.whyc.pojo.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Locale;
 
@RestController
@Api(tags = "测试")
@RequestMapping("test")
public class TestController {
 
 
    @GetMapping("/hello")
    public Response hello(){
        return new Response().set(1,"hello");
    }
 
 
}