在Linux中使用Swagger导出API文档,可参考以下步骤:
pom.xml
springfox-swagger2
springfox-swagger-ui
@EnableSwagger2
Docket
http://localhost:8080/swagger-ui.html