当前位置:网站首页>Smart doc + Torna generate interface document
Smart doc + Torna generate interface document
2022-04-23 16:48:00 【A coir boat in the broken white clouds】
One 、 Integrate pom plug-in unit
<!-- smart-doc + torna Generate interface document -->
<plugin>
<groupId>com.github.shalousun</groupId>
<artifactId>smart-doc-maven-plugin</artifactId>
<version>2.3.0</version>
<configuration>
<!-- Specifies the profile used to generate the document , The configuration file is placed in your own project -->
<configFile>./src/main/resources/smart-doc.json</configFile>
<!-- Specify project name -->
<projectName> Project name </projectName>
<!--smart-doc Automatically analyze the dependency tree and load the source code of third-party dependencies , If some framework dependent libraries cannot be loaded, an error will be reported , Please use excludes Get rid of -->
<excludes>
<!-- The format is :groupId:artifactId; Refer to the following -->
<exclude>com.alibaba:fastjson</exclude>
</excludes>
<!-- since 1.0.8 Version start , Plug in provides includes Support , Configured with includes The plug-in will be loaded according to the user configuration instead of automatically , Therefore, attention should be paid to -->
<!--smart-doc Dependency tree can be loaded automatically , In principle, it will affect the efficiency of document construction , So you can use includes To let the plug-in load your configured components -->
<includes>
<!-- The format is :groupId:artifactId; Refer to the following -->
<include>com.alibaba:fastjson</include>
</includes>
</configuration>
<executions>
<execution>
<!-- If you don't need to start at compile time smart-doc, Will phase Comment out -->
<phase>compile</phase>
<goals>
<!--smart-doc Provides html、openapi、markdown etc. goal, It can be configured as required -->
<goal>html</goal>
</goals>
</execution>
</executions>
</plugin>
Two 、 newly build json file ==》 ./src/main/resources/smart-doc.json
{
"serverUrl": "http://---------:8080/product",
"outPath": "C:\\Users\\11827\\Desktop\\doc\\smart-doc",
"isStrict": false,
"coverOld": true,
"showAuthor": true,
"inlineEnum":true,
"packageFilters": "com.xycm.mall.product.controller",
"projectName": " goods ",
"appKey": "a---------------",
"appToken": "a---------------",
"secret": "a---------------",
"debugEnvName":" development environment ",
"debugEnvUrl":"http://---------:8080/product",
"openUrl": "http://---------:7777/api",
"author": " Big brother "
}
3、 ... and 、 maven Click upload
success , Milk thought ~
版权声明
本文为[A coir boat in the broken white clouds]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231400068459.html
边栏推荐
- NVIDIA显卡驱动报错
- ACL 2022 | DialogVED:用于对话回复生成的预训练隐变量编码-解码模型
- 欣旺达:HEV和BEV超快充拳头产品大规模出货
- An essay on the classical "tear down the wall in thinking"
- Redis "8" implements distributed current limiting and delay queues
- VMware Workstation cannot connect to the virtual machine. The system cannot find the specified file
- Nodejs reads the local JSON file through require. Unexpected token / in JSON at position appears
- 人脸识别框架之dlib
- Set cell filling and ranking method according to the size of the value in the soft report
- PHP高效读大文件处理数据
猜你喜欢
Set cell filling and ranking method according to the size of the value in the soft report
漫画:什么是IaaS、PaaS、SaaS?
STM32__03—初识定时器
NVIDIA graphics card driver error
Use itextpdf to intercept the page to page of PDF document and divide it into pieces
SQL database
Knowledge points and examples of [seven input / output systems]
计组 | 【七 输入/输出系统】知识点与例题
How to choose the wireless gooseneck anchor microphone and handheld microphone scheme
Detailed explanation of Niuke - Gloves
随机推荐
File upload and download of robot framework
Dancenn: overview of byte self-developed 100 billion scale file metadata storage system
LVM and disk quota
Postman batch production body information (realize batch modification of data)
Server log analysis tool (identify, extract, merge, and count exception information)
信息摘要、数字签名、数字证书、对称加密与非对称加密详解
UWA Pipeline 功能详解|可视化配置自动测试
Redis "8" implements distributed current limiting and delay queues
Use if else to judge in sail software - use the title condition to judge
Selenium IDE and XPath installation of chrome plug-in
JMeter installation tutorial and solutions to the problems I encountered
Knowledge points and examples of [seven input / output systems]
Mock test using postman
Nifi fast installation and file synchronization
Log4j output log information to file
Real time operation of vim editor
Encapsulating the logging module
Construction of promtail + Loki + grafana log monitoring system
如何建立 TikTok用户信任并拉动粉丝增长
G008-hwy-cc-estor-04 Huawei Dorado V6 storage simulator configuration