springboot項目中配置swagger-ui


Git官方地址:https://github.com/SpringForAll/spring-boot-starter-swagger

Demo:https://github.com/dyc87112/swagger-starter-demo

demo下載到本地使用idea打開,默認8080端口,啟動后訪問:http://localhost:8080/swagger-ui.html

 在pom.xml文件里引入

 

 

在springboot啟動類里面加@EnableSwagger2Doc注解

 

在application.properties 配置

 


免責聲明!

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



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