Spring Boot整合Swagger3的依赖版本为:
<!--引入SpringBoot整合Swagger3的依赖-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
注解@ApiImplicitParam的allowMultiple属性表示该请求参数允许多个,即:数组或集合:
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 {
@PostMapping("/del")
@ApiOperation(value = "删除")
@ApiImplicitParam(name = "ids", value = "id数组",allowMultiple = true)
public St