当前位置:   article > 正文

Swagger之导入不同的pom依赖访问不同的html展示不同的UI界面_swagger不同的页面

swagger不同的页面

一、Swagger UI视图展示实现依赖(pom.xml)

  1.访问 http://localhost:8080/swagger-ui.html

复制代码

复制代码

  1. <!-- swagger-ui -->
  2. <dependency>
  3. <groupId>io.springfox</groupId>
  4. <artifactId>springfox-swagger-ui</artifactId>
  5. <version>2.5.0</version>
  6. </dependency>

复制代码

复制代码

 

 

  2.访问 http://localhost:8080/doc.html

复制代码

复制代码

  1. <!-- 引入swagger-bootstrap-ui包 /doc.html-->
  2. <dependency>
  3. <groupId>com.github.xiaoymin</groupId>
  4. <artifactId>swagger-bootstrap-ui</artifactId>
  5. <version>1.9.1</version>
  6. </dependency>

复制代码

复制代码

 

 

  3.访问 http://localhost:8080/docs.html

复制代码

复制代码

  1. <!-- 引入swagger-ui-layer包 /docs.html-->
  2. <dependency>
  3. <groupId>com.github.caspar-chen</groupId>
  4. <artifactId>swagger-ui-layer</artifactId>
  5. <version>1.1.3</version>
  6. </dependency>

复制代码

复制代码

 

 

  4.访问 http://localhost:8080/document.html

复制代码

复制代码

  1. <!-- 引入swagger-ui-layer包 /document.html-->
  2. <dependency>
  3. <groupId>com.zyplayer</groupId>
  4. <artifactId>swagger-mg-ui</artifactId>
  5. <version>1.0.6</version>
  6. </dependency>

复制代码

复制代码

参考https://www.oschina.net/news/101720/swagger-bootstrap-ui-1-8-7-released

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/373151
推荐阅读
相关标签
  

闽ICP备14008679号