当前位置:网站首页>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
边栏推荐
- Cartoon: what are IAAs, PAAS, SaaS?
- Set cell filling and ranking method according to the size of the value in the soft report
- SQL database
- vscode如何比较两个文件的异同
- 众昂矿业:萤石浮选工艺
- ACL 2022 | dialogved: a pre trained implicit variable encoding decoding model for dialogue reply generation
- DanceNN:字节自研千亿级规模文件元数据存储系统概述
- JIRA screenshot
- 面试百分百问到的进程,你究竟了解多少
- 【Pygame小游戏】10年前风靡全球的手游《愤怒的小鸟》,是如何霸榜的?经典回归......
猜你喜欢
ACL 2022 | dialogved: a pre trained implicit variable encoding decoding model for dialogue reply generation
JMeter installation tutorial and solutions to the problems I encountered
DanceNN:字节自研千亿级规模文件元数据存储系统概述
Detailed explanation of information abstract, digital signature, digital certificate, symmetric encryption and asymmetric encryption
无线鹅颈麦主播麦手持麦无线麦克风方案应当如何选择
Use case labeling mechanism of robot framework
Bytevcharts visual chart library, I have everything you want
Set the color change of interlaced lines in cells in the sail software and the font becomes larger and red when the number is greater than 100
PyTorch:train模式与eval模式的那些坑
Xinwangda: HEV and Bev super fast charging fist products are shipped on a large scale
随机推荐
蓝桥杯省一之路06——第十二届省赛真题第二场
The first line and the last two lines are frozen when paging
New project of OMNeT learning
VMware Workstation cannot connect to the virtual machine. The system cannot find the specified file
Report FCRA test question set and answers (11 wrong questions)
Custom implementation of Baidu image recognition (instead of aipocr)
Database dbvisualizer Pro reported file error, resulting in data connection failure
众昂矿业:萤石浮选工艺
About background image gradient()!
[pyGame games] how did angry birds, a mobile game that became popular all over the world 10 years ago, dominate the list? Classic return
伪分布安装spark
Postman batch production body information (realize batch modification of data)
磁盘管理与文件系统
NVIDIA显卡驱动报错
Redis "8" implements distributed current limiting and delay queues
Detailed explanation of UWA pipeline function | visual configuration automatic test
Gartner 發布新興技術研究:深入洞悉元宇宙
Summary according to classification in sail software
Detailed explanation of Niuke - Gloves
NVIDIA graphics card driver error