前言:swagger文档地址:swagger document
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
在SpringApplication类中添加注解@EnableOpenApi
@SpringBootApplication
@EnableOpenApi
访问http://host:8080/swagger-ui/index.html
原文:https://www.cnblogs.com/fanxia/p/14033634.html