当前位置:网站首页>smart-doc + torna生成接口文档
smart-doc + torna生成接口文档
2022-04-23 14:00:00 【白云碎里一蓑舟】
一、集成pom插件
<!-- smart-doc + torna生成接口文档-->
<plugin>
<groupId>com.github.shalousun</groupId>
<artifactId>smart-doc-maven-plugin</artifactId>
<version>2.3.0</version>
<configuration>
<!--指定生成文档的使用的配置文件,配置文件放在自己的项目中-->
<configFile>./src/main/resources/smart-doc.json</configFile>
<!--指定项目名称-->
<projectName>项目名称</projectName>
<!--smart-doc实现自动分析依赖树加载第三方依赖的源码,如果一些框架依赖库加载不到导致报错,这时请使用excludes排除掉-->
<excludes>
<!--格式为:groupId:artifactId;参考如下-->
<exclude>com.alibaba:fastjson</exclude>
</excludes>
<!--自1.0.8版本开始,插件提供includes支持,配置了includes后插件会按照用户配置加载而不是自动加载,因此使用时需要注意-->
<!--smart-doc能自动分析依赖树加载所有依赖源码,原则上会影响文档构建效率,因此你可以使用includes来让插件加载你配置的组件-->
<includes>
<!--格式为:groupId:artifactId;参考如下-->
<include>com.alibaba:fastjson</include>
</includes>
</configuration>
<executions>
<execution>
<!--如果不需要在执行编译时启动smart-doc,则将phase注释掉-->
<phase>compile</phase>
<goals>
<!--smart-doc提供了html、openapi、markdown等goal,可按需配置-->
<goal>html</goal>
</goals>
</execution>
</executions>
</plugin>
二、 新建json文件 ==》 ./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": "商品",
"appKey": "a---------------",
"appToken": "a---------------",
"secret": "a---------------",
"debugEnvName":"开发环境",
"debugEnvUrl":"http://---------:8080/product",
"openUrl": "http://---------:7777/api",
"author": "大帅哥"
}
三、 maven点击上传

成功,奶思~
版权声明
本文为[白云碎里一蓑舟]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_49513507/article/details/121352943
边栏推荐
- Introduction to spark basic operation
- 联想产品经理林林:天津当地网络运营商网络故障 ZUI系统后台服务器暂时无法正常工作
- Postman reference summary
- [code analysis (4)] communication efficient learning of deep networks from decentralized data
- elmo(BiLSTM-CRF+elmo)(Conll-2003 命名实体识别NER)
- Scientists say Australian plan to cull up to 10,000 wild horses doesn’t go far enough
- 村上春树 --《当我谈跑步时,我谈些什么》句子摘录
- 基础知识学习记录
- Tensorflow & pytorch common error reporting
- 接口文档yaml
猜你喜欢

Reading notes: meta matrix factorization for federated rating predictions

Modify the Jupiter notebook style

About note 1

【vmware】vmware tools 地址
![MySQL [SQL performance analysis + SQL tuning]](/img/71/2ca1a5799a2c7a822158d8b73bd539.png)
MySQL [SQL performance analysis + SQL tuning]

Dynamic subset division problem

Basic knowledge learning record

Leetcode brush question 897 incremental sequential search tree

1256: bouquet for algenon

Quartus Prime硬件实验开发(DE2-115板)实验一CPU指令运算器设计
随机推荐
MySQL [acid + isolation level + redo log + undo log]
Pytorch 经典卷积神经网络 LeNet
神经元与神经网络
剑南春把文字游戏玩明白了
Business case | how to promote the activity of sports and health app users? It is enough to do these points well
The latest development of fed digital currency
Jenkins construction and use
1256:献给阿尔吉侬的花束
[code analysis (7)] communication efficient learning of deep networks from decentralized data
零拷貝技術
初识go语言
Android: answers to the recruitment and interview of intermediate Android Development Agency in early 2019 (medium)
SSM project deployed in Alibaba cloud
生产环境——
VsCode-Go
AtCoder Beginner Contest 248C Dice Sum (生成函数)
商家案例 | 运动健康APP用户促活怎么做?做好这几点足矣
Decimal 格式化小数位/DateTime 转换处理
2022年江西最新建筑八大员(质量员)模拟考试题库及答案解析
Android interview theme collection