Swagger
在网页中展示接口信息
引入依赖
12345678910<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version></dependency><dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>2.9.2</version></dependency>
编写配置
123456789101112131415161718192021@Configuration@EnableSwagger2public class SwaggerConfig ...