前言
对于前后端分离的项目来说,这个时候往往需要接口文档,进行前后端联调。这个时候可以采用使用swagger插件来生成html文档来作为接口文档进行开发
应用
1、引入依赖
<!--swagger核心包-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.7.0</version>
</dependency>