当前位置:网站首页>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
边栏推荐
- G008-hwy-cc-estor-04 Huawei Dorado V6 storage simulator configuration
- 阿里研发三面,面试官一套组合拳让我当场懵逼
- Nacos 详解,有点东西
- How magical is the unsafe class used by all major frameworks?
- Detailed explanation of UWA pipeline function | visual configuration automatic test
- True math problems in 1959 college entrance examination
- Copy constructor shallow copy and deep copy
- MySQL master-slave synchronization pit avoidance version tutorial
- 杂文 谈谈古典的《拆掉思维里的墙》
- Nacos detailed explanation, something
猜你喜欢

昆腾全双工数字无线收发芯片KT1605/KT1606/KT1607/KT1608适用对讲机方案

各大框架都在使用的Unsafe类,到底有多神奇?

Project framework of robot framework

JMeter setting environment variable supports direct startup by entering JMeter in any terminal directory

Deepinv20 installation MariaDB

Dancenn: overview of byte self-developed 100 billion scale file metadata storage system

文件操作详解(2)

建站常用软件PhpStudy V8.1图文安装教程(Windows版)超详细
![[pimf] openharmony paper Club - what is the experience of wandering in ACM survey](/img/b6/3df53baafb9aad3024d10cf9b56230.png)
[pimf] openharmony paper Club - what is the experience of wandering in ACM survey

Summary according to classification in sail software
随机推荐
◰GL-着色器处理程序封装
无线鹅颈麦主播麦手持麦无线麦克风方案应当如何选择
正则过滤内网地址和网段
Detailed explanation of UWA pipeline function | visual configuration automatic test
Copy constructor shallow copy and deep copy
LVM and disk quota
Public variables of robotframework
Easyexcel reads the geographical location data in the excel table and sorts them according to Chinese pinyin
On the value, breaking and harvest of NFT project
Introduction to how to set up LAN
Differences between MySQL BTREE index and hash index
Detailed explanation of information abstract, digital signature, digital certificate, symmetric encryption and asymmetric encryption
批量制造测试数据的思路,附源码
Introduction to new functions of camtasia2022 software
如何用Redis实现分布式锁?
Use itextpdf to intercept the page to page of PDF document and divide it into pieces
各大框架都在使用的Unsafe类,到底有多神奇?
Gartner 發布新興技術研究:深入洞悉元宇宙
Install MySQL on MAC
05 Lua 控制结构