swagger中参数为数组dataType的设置
强烈推介IDEA2020.2破解激活,IntelliJ IDEA 注册码,2020.2 IDEA 激活码
@ApiOperation("根据用户id数组集获得用户集合信息")
@ApiImplicitParam(name="userIds", value="用户ID数组集", required=true, paramType="query" ,allowMultiple=true, dataType = "String")
@GetMapping("/ids-user-list")
allowMultiple=true,————表示是数组格式的参数
dataType = "String"————表示数组中参数的类型
效果展示: