美文网首页
Springmvc整合 swagger2

Springmvc整合 swagger2

作者: wuyuan0127 | 来源:发表于2017-09-04 16:47 被阅读0次

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!

相关文章

网友评论

      本文标题:Springmvc整合 swagger2

      本文链接:https://www.haomeiwen.com/subject/papejxtx.html