Swagger2 3.0版本的一些变化

Swagger2 3.0

本文档总结一些与2.X的不同

1. 文档位置

http://springfox.github.io/springfox/docs/current/

2. 添加依赖

不同于2.X版本, 此时只要添加一个依赖即可

<dependency>
	<groupId>io.springfox</groupId>
	<artifactId>springfox-boot-starter</artifactId>
	<version>3.0.0</version>
</dependency>

3. SwaggerUI的位置

现在改为了

http://localhost:8001/swagger-ui/index.html

此时我配置使用的端口号为8001

原文地址:https://www.cnblogs.com/wang-sky/p/13786182.html