avatar
文章
464
标签
16
分类
76

Believe it

Springfox使用

发表于2022-01-13|更新于2022-01-13|LanguageJava
|阅读量:
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial

1. 对List不能很好的支持

1.1. 核心代码

代码中写的是数组

1
2
3
4
5
/**
* 用户
*/
@ApiModelProperty(value = "用户",example = "hellowang")
private List<String> user;

1.2. 问题详情

在swagger页面展示的例子是字符串

1
2
3
{
"user": "hellowang"
}

1.3. 问题讨论

Stackoverflow

Github

1.4. 解决方案

springfox-collection-example-plugin

文章作者: fightinggg
文章链接: http://fightinggg.github.io/butterfly/R5MNS0.html
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Believe it!
SpringFox使用
上一篇
C++引用的秘密
下一篇
Go入门-常见陷阱
avatar
fightinggg
O ever youthful, O ever weeping
文章
464
标签
16
分类
76
Follow Me
公告
This is my Blog
目录
  1. 1. 1. 对List不能很好的支持
    1. 1.1. 1.1. 核心代码
    2. 1.2. 1.2. 问题详情
    3. 1.3. 1.3. 问题讨论
    4. 1.4. 1.4. 解决方案
最新文章
智慧的疆界:从图灵机到人工智能2023-05-17
Transformer2023-03-28
2023你好2023-02-06
VPN与代理那些事2022-07-24
CPU架构介绍2022-07-19
©2020 - 2023 By fightinggg
框架 Hexo|主题 Butterfly