传递List类型参数
@ApiOperation(value="添加权限", notes="增加权限" )
@ApiImplicitParams({
@ApiImplicitParam(name = "clientId", value = "clientId", required = true, paramType = "query",dataType = "String", defaultValue="1"),
})
@PutMapping("/save")
public Boolean save(String clientId, @RequestParam(value = "powerClientIds") @ApiParam(value = "可被访问的clientId列表") List<String> powerClientIds) {
........
return true;
}

本文转载自优快云文章:《swagger》 swagger + springboot 传递 对象参数, List,数组参数
本文介绍了swagger与springboot结合时,传递List类型参数的相关内容,还提及可传递对象参数、数组参数等。
1万+

被折叠的 条评论
为什么被折叠?



