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!
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
网友评论