Spring Boot整合Swagger3的依赖版本为:
<!--引入SpringBoot整合Swagger3的依赖-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
注解@ApiImplicitParam的paramType属性为"path"时的示例代码:
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
@Api(tags = "系统管理")
@RestController
@RequestMapping("/sys")
public class SysController {
@ApiOperation(value = "删除")
@ApiImplicitParam(name = "id", value = "ID",paramType="path",dataTypeClass=Integer.class)
@PostMapping("/del/{id}")
public String delApprovals(@PathVari