当前位置:网站首页>Just one dependency to give swagger a new skin, which is simple and cool
Just one dependency to give swagger a new skin, which is simple and cool
2022-07-22 05:46:00 【InfoQ】
Chat Swagger Of Java library
SpringFox

SpringDoc

Which one to choose
SpringDoc combination Knife4j Use
- We're still going to use it here SpringDoc Use the tutorial Medium mall-tiny-springdocDemo, First, in the pom.xml Add Knife4j Related dependencies ;
<!--Knife4j Of Swagger Skin dependence -->
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-springdoc-ui</artifactId>
<version>3.0.3</version>
</dependency>
- Then start the project , Access to the Knife4j Default interface document address :http://localhost:8088/doc.html

- We are looking for one that needs to be submitted JSON Interface debugging of format request parameters , Find out about JSON Format parameters ,Knife4j Provides format verification function ;

- Find another interface with long return data to debug ,Knife4j Provides data folding function , These two functions are really what we need .

Knife4j Microservice solution update
Realization principle
- micro-knife4j-gateway: Gateway service , As a micro service API Access to documents , Aggregate all API file , Need to introduce the document front end UI package ;
- micro-knife4j-user: Customer service , Ordinary API service , There is no need to introduce a document front end UI package ;
- micro-knife4j-order: Order service , Ordinary API service , There is no need to introduce a document front end UI package .
Project address
summary
Project source address
边栏推荐
- Document operation management
- Onvif协议及协议测试工具使用详解
- Mlx90640 infrared thermal imaging sensor temperature measurement module development notes (III)
- JS&&TS学习总结
- 图片信息用浏览器显示:data:image/png;base64,+图片内容
- Computer postgraduate entrance examination database question bank
- Figure neural network: gat learning, understanding and pit entry
- 华为机试-题目核心考点
- 在代码评审中用好这7招,很容易就能建立起你的反对同盟
- 十大券商开户安全吗,风险大吗?
猜你喜欢
814. Binary tree pruning: simple recursive problem
Tensorflow入门教程(三十三)——图像分割损失函数FocalLoss
ROS2学习笔记:Launch脚本
The state Internet Information Office made a decision on the administrative punishment related to the network security review of didi Global Co., Ltd. in accordance with the law
高校重金引进23名菲律宾博士,有关部门已展开调查!
idea报错Port 8080 is already in use
Codeforces Round #794 (Div. 2)(A.B.C)
【js基础】Math中random、floor、ceil方法的使用
Niuke online question brushing - day 3
Understand the domestic open source Magnolia license series agreement in simple terms
随机推荐
[basis of concurrent programming] - thread safety of collections
判断一个人靠不靠谱,就看这3点
solo 博客的 Bubble 皮肤 文章详情的顶部图片怎么去掉
[attack and defense world web] difficulty 1-star 3-point introductory questions: get, post, robots,, cookies, buttons, weak, PHP, web, serialize
Case analysis of building cross department communication system on low code platform
dried food! Nine details that you must know about high-speed goods
Tensorflow入门教程(三十三)——图像分割损失函数FocalLoss
Write it down once Net analysis of CPU explosion of an intelligent transportation background service
Openlayers:点聚合效果
idea报错Port 8080 is already in use
专注跨境支付一体化服务 iPayLinks获《财资》3A亚洲奖
Niuke online question brushing - day 3
How to draw PCB outline machining drawing
国内期货期货中信建投可以开户吗,安全吗?
com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: Deadlock found when trying to get lo
How to clean the C disk
牛客网刷题——第三天
被罗敏制霸的直播间,躲得开陆正耀吗?
Matlab least square fitting
【js基础】逻辑判断篇(易错点)