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 配置

 

posted @ 2019-04-23 14:10  小屈工作室  阅读(3308)  评论(0编辑  收藏  举报