pom.xml
<!--添加smart-doc插件支持 -->
<plugin>
<groupId>com.github.shalousun</groupId>
<artifactId>smart-doc-maven-plugin</artifactId>
<version>2.1.7</version>
<configuration>
<!--指定生成文档使用的配置文件-->
<configFile>./src/main/resources/smart-doc.json</configFile>
</configuration>
</plugin>
src/main/resources目录下 创建文件 smart-doc.json
{
"serverUrl": "http://127.0.0.1",
"isStrict": false,
"allInOne": true,
"outPath": "src/main/resources/static/doc",
"projectName": "smart-doc"
}
添加完毕后,会出现smart-doc的选项。

本文介绍了如何在SpringBoot项目中整合SmartDoc,包括在pom.xml中添加依赖和在src/main/resources目录下创建smart-doc.json配置文件的步骤。
2516

被折叠的 条评论
为什么被折叠?



