0
点赞
收藏
分享

微信扫一扫

Springmvc整合 swagger2

深夜瞎琢磨 2021-09-29 阅读 42
日记本

1.引入 maven pom地址: 




2.在spring-mvc.xml中声明swagger配置bean



3.访问:

http://localhost:8080/swagger-ui.html





github demo : 

https://github.com/wuyuan2009123/swagger2



springBoot引入 swagger2:

加入前面的 pom地址

然后在 启动类上面 加上一个 EnableSwagger2注解就OK!

举报

相关推荐

0 条评论