**
接口自动生成工具—Swagger搭建
**
最近学习了一些接口的测试小工具,今天开始总结一下吧!
swagger是一个比较简单的接口自动生成工具,可以在网页上就进行简单的接口的测试,不需要借助postman等工具。
1、需要导入相关的依赖
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
</dependency>
2、在一个工程中建立一个config文件夹,来放相关的配置类
package com.cast.admin.config;
import org