参考文档:使用Swagger2Markup实现导出API文档-腾讯云开发者社区-腾讯云
github:GitHub - Swagger2Markup/swagger2markup: A Swagger to AsciiDoc or Markdown converter to simplify the generation of an up-to-date RESTful API documentation by combining documentation that’s been hand-written with auto-generated API documentation.
码云:https://gitee.com/darkone/springboot2-swagger2markup
======================代码===================
===================演示效果=================
1、启动项目:运行SwaggerApplication即可(参考第8步)
2、访问swagger2-ui:http://localhost:8001/springboot2-swagger/swagger-ui.html#/,如下图:
================基于main方法运行(方法一)===================
2、eclipse中maven执行命令:asciidoctor:process-asciidoc或mvn asciidoctor:process-asciidoc
=====================基于junit运行(方法二)======================
1、eclipse中maven执行命令:test asciidoctor:process-asciidoc或mvn asciidoctor:process-asciidoc