whycxzp
2020-12-11 c2dc64cbefd901ef194c8d7497b4cfb9f3fccc95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.yckj.controller;
 
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.boot.test.autoconfigure.web.client.RestClientTest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@RequestMapping("test")
@Api(tags = "swagger测试")
public class SwaggerController {
 
    @GetMapping("/test")
    @ApiOperation(value = "方法测试")
    public String test(String a,String b){
 
        return a+b;
    }
 
}