Solon v2.7.5

::smart-doc-maven-plugin

</> markdown
<plugin>
    <groupId>com.ly.smart-doc</groupId>
    <artifactId>smart-doc-maven-plugin</artifactId>
</plugin>

1、描述

请参考开源项目:https://gitee.com/TongchengOpenSource/smart-doc

2、应用示例

a) 添加 pom.xml 插件配置:

<build>
      <plugins>
          <plugin>
              <groupId>com.ly.smart-doc</groupId>
              <artifactId>smart-doc-maven-plugin</artifactId>
              <version>3.0.3</version>
              <configuration>
                  <!--指定生成文档的使用的配置文件,配置文件放在自己的项目中-->
                  <configFile>./src/main/resources/smart-doc.json</configFile>
                  <!--指定项目名称-->
                  <projectName>测试</projectName>
              </configuration>
          </plugin>
      <plugins>
</build>

b) 添加 smart-doc.json 项目配置(注意,framework 要设为 solon):

{
  "framework": "solon",
  "outPath": "src/main/resources/static/doc"
}

c) 用 maven 插件命令生成文档

3、更多参考

官网文档演示项目