swagger-ui 3.0.0版本介紹


Spring Boot Applications
NOTE: Would love feedback to make this better

Remove explicit dependencies on springfox-swagger2
Remove any @EnableSwagger2... annotations
Add the springfox-boot-starter dependency
Springfox 3.x removes dependencies on guava and other 3rd party libraries (not zero dep yet! depends on spring plugin and open api libraries for annotations and models) so if you used guava predicates/functions those will need to transition to java 8 function interfaces.

翻譯:

移除springfox-swagger2的依賴沖突
移除@EnableSwagger注解
添加springfox-boot-starter
減少了第三方的依賴

同時訪問網頁也發生了變化
http://localhost:8080/swagger-ui/index.html

部分內容參考:https://blog.csdn.net/qq_15973399/article/details/107436089
github鏈接:https://github.com/springfox/springfox


免責聲明!

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



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