spring mvc 之 Swagger-api文檔生成

1.引入架包 找到maven的倉庫http://mvnrepository.com裏搜索Springfox 2.選擇maven依賴依次添加到Pom.xml文件中 3. 在啓動類上添加@EnableSwagger2註解 4. 這個時候啓動的時候會訪問sawgger地址就會看到 http://localhost:8080/swagger-ui.html 通過註解添加api文檔的中文說明 1) @Api
相關文章
相關標籤/搜索