springboot-restful api-swagger2 ui-实战
来源:互联网 发布:统计分析软件市场规模 编辑:程序博客网 时间:2024/04/30 03:54
swagger2 ui 自动生成api文档,就节省了编写接口测试和文档的工作,非常方便
下面以集成融云IM api 为例,展示如何配置swagger2
pom.xml
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
application.properties
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
SwaggerConfig
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
Application
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
controller
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
访问
http://localhost:9090/swagger-ui.html
效果
还可以填写http参数 进行测试
阅读全文
0 0
- springboot-restful api-swagger2 ui-实战
- springboot-restful api-swagger2 ui-实战
- springboot实战之整合restful工具swagger2
- SpringBoot集成springfox-swagger2构建restful API
- Springboot中使用Swagger2构建RESTful API文档
- 【转】SpringBoot集成springfox-swagger2构建restful API
- springboot集成swagger2,构建优雅的Restful API doc
- SpringBoot非官方教程 | 第十一篇:springboot集成swagger2,构建优雅的Restful API
- SpringBoot非官方教程 | 第十一篇:springboot集成swagger2,构建优雅的Restful API
- SpringBoot非官方教程 | 第十一篇:springboot集成swagger2,构建优雅的Restful API
- SpringBoot非官方教程 | 第十一篇:springboot集成swagger2,构建优雅的Restful API
- SpringMVC集成springfox-swagger2构建restful API
- springboot中使用swagger2管理测试api
- 9.springboot整合swagger2生成rest-api
- SpringBoot集成Swagger2实现Restful(类型转换错误解决办法)
- SpringBoot集成Swagger2实现Restful(类型转换错误解决办法)
- springboot中使用swagger2构建restful接口文档
- SpringBoot -- Swagger2
- ubuntu17.04下 selenium安装及使用
- gitlab新建项目过程和添加用户
- ABBYY FineReader 12中条码检测不到怎么办
- QT串口打印以及换行解决
- 初入django6-在页面中正常显示包含html标记的内容
- springboot-restful api-swagger2 ui-实战
- systemd——结构
- 2017夏天之哪凉快去哪里 之六
- Java多线程核心技术笔记-wait()和notify()
- android六边形imageview
- 使用sklearn实现tfidf特征计算
- Tomcat安全漏洞修改总结
- HPU 1192:Sequence(组合数+二进制选数)
- Scan 读取数据按照时区