接口请求方法类型
(1) 如果接口没有指定请求的 method 类型,例如 GET、POST、PUT、DELETE 等。
Swagger中
(2)指定了请求方法后
Swagger中就只有一个GET请求的接口
请求参数中注解的不同
(1)Controller中用@RequestBody注解时
请求DTO
Swagger中是Json的格式
(2)当参数用@RequestParam和@PathVariable
Swagger中
(1) 如果接口没有指定请求的 method 类型,例如 GET、POST、PUT、DELETE 等。
Swagger中
(2)指定了请求方法后
Swagger中就只有一个GET请求的接口
(1)Controller中用@RequestBody注解时
请求DTO
Swagger中是Json的格式
(2)当参数用@RequestParam和@PathVariable
Swagger中