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