In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
How to understand knife4j? in view of this problem, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
I. introduction
Knife4j is an enhanced solution to generate Api documents for Java MVC framework integration Swagger (enhanced solutions for front-end UI are also provided in non-Java projects), formerly known as swagger-bootstrap-ui, named knife4j in the hope that she can be as small, lightweight, and powerful as a dagger!
II. Open source warehouse
Github
Https://github.com/xiaoymin/swagger-bootstrap-ui
Code cloud
Https://gitee.com/xiaoym/knife4j III. Functional features
Brevity
Based on the left and right menu layout, it is more in line with the operating habits of Chinese people. The document is clearer.
Personalized configuration
Personalized configuration items, support interface address, interface description properties, UI enhancements and other personalized configuration features.
Enhancement
Interface sorting, Swagger resource protection, export Markdown, parameter cache and many powerful functions.
Fourth, function preview
Online preview
Http://knife4j.xiaominfo.com/doc.html
Select a different interface
Authorize
Swagger entity
Contains information about swagger entities
Swagger Global Settings
Global parameter setting
Offline document export
Knife4j provides the export of offline documents in 4 formats (Html\ Markdown\ Word\ Pdf)
Personalization setting
Api document
Search function
Fifth, introduction to use
Project structure
Currently the main modules
At present, the main modules include: module name description: knife4j is the addition of Swagger for Java MVC framework integration.
Strong solution knife4j-admin cloud Swagger interface document registration center, integrated gateway gateway for any micro service document combination integration knife4j-extensionchrome browser enhanced swagger interface document ui, fast rendering swagger resource knife4j-service for swagger service series of interface service program knife4j-frontknife4j-spring-ui pure front-end static version, used to integrate non-Java language using the predecessor of swagger-bootstrap-uiknife4j, the final release version is 1.9.6
Simple skin enhancement
Do not use enhanced features, simply change the front-end skin of swagger, this situation is the simplest, there is no need to change under your project structure
You can refer directly to the last version 1.9.6 of swagger-bootstrap-ui or use knife4j-spring-ui
The answer to the question about how to understand knife4j is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.