avatar
文章
461
标签
12
分类
74

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使用
cover of previous post
上一篇
C++引用的秘密
cover of next post
下一篇
Go入门-常见陷阱
avatar
fightinggg
O ever youthful, O ever weeping
文章
461
标签
12
分类
74
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. 解决方案
最新文章
VPN与代理那些事
VPN与代理那些事2022-07-24
CPU架构介绍
CPU架构介绍2022-07-19
docker内部安装软件
docker内部安装软件2022-07-16
白帽子讲Web安全
白帽子讲Web安全2022-05-25
spring13-AspectJ
spring13-AspectJ2022-03-31
©2020 - 2022 By fightinggg
框架 Hexo|主题 Butterfly