Swagger2 3.0版本的一些變化

Swagger2 3.0

本文檔總結一些與2.X的不一樣html

1. 文檔位置

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

2. 添加依賴

不一樣於2.X版本, 此時只要添加一個依賴便可github

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

3. SwaggerUI的位置

如今改成了spring

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

此時我配置使用的端口號爲8001code

相關文章
相關標籤/搜索