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