Spring Boot整合Swagger3注解@ApiImplicitParam的allowMultiple属性

Spring Boot整合Swagger3的依赖版本为:



    io.springfox
    springfox-boot-starter
    3.0.0

注解@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

你可能感兴趣的:(Spring,Boot,swagger2)