swagger-ui升级swagger-bootstrap-ui界面好看到起飞

版权声明:开源共享,觉得文章对你有用就拿去吧,内容如果侵犯您的权益或者您有其他需要交流的,可以联系taishanglianqing#qq.com(把#替代为@即可) https://blog.csdn.net/qq_22585453/article/details/81667847

如果项目已经集成了swagger,只需要在pom.xml添加,如果你的项目没有集成swagger,自行百度或看最下方的链接

swagger-bootstrap-ui是Swagger的前端UI实现,目的是替换Swagger默认的UI实现Swagger-UI,使文档更友好一点儿....

swagger-bootstrap-ui 只是Swagger的UI实现,并不是替换Swagger功能,所以后端模块依然是依赖Swagger的,需要配合Swagger的注解达到效果


<dependency>
   <groupId>com.github.xiaoymin</groupId>
   <artifactId>swagger-bootstrap-ui</artifactId>
   <version>1.8.1</version>
</dependency>

文档地址

http://localhost:8080/XXX/doc.html

之前的swagger-ui.html仍然保留

swagger-bootstrap-ui介绍

https://www.oschina.net/p/swagger-bootstrap-ui

码云https://gitee.com/xiaoym/swagger-bootstrap-ui

GITHUB:https://github.com/xiaoymin/Swagger-Bootstrap-UI

在线体验:http://swagger-bootstrap-ui.xiaominfo.com/doc.html

猜你喜欢

转载自blog.csdn.net/qq_22585453/article/details/81667847