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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM