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