1. @ApiOperation("根据用户id数组集获得用户集合信息")

  2. @ApiImplicitParam(name="userIds", value="用户ID数组集", required=true, paramType="query" ,allowMultiple=true, dataType = "String")

  3. @GetMapping("/ids-user-list")

 
  1. allowMultiple=true,————表示是数组格式的参数

  2. dataType = "String"————表示数组中参数的类型

效果展示:

swagger中参数为数组dataType的设置

相关文章:

  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2021-10-09
  • 2021-09-23
猜你喜欢
  • 2021-12-11
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
相关资源
相似解决方案