(window.webpackJsonp=window.webpackJsonp||[]).push([[116],{556:function(t,o,e){"use strict";e.r(o);var i=e(42),r=Object(i.a)({},(function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"_2-8-示例代码"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#_2-8-示例代码"}},[t._v("#")]),t._v(" 2.8 示例代码")]),t._v(" "),e("p",[t._v("目前Knife4j以及前身"),e("code",[t._v("swagger-bootstrap-ui")]),t._v("也提供了一些代码示例，可以前往Gitee仓库地址直接获取。")]),t._v(" "),e("p",[t._v("Demo示例地址："),e("a",{attrs:{href:"https://gitee.com/xiaoym/swagger-bootstrap-ui-demo",target:"_blank",rel:"noopener noreferrer"}},[t._v("https://gitee.com/xiaoym/swagger-bootstrap-ui-demo"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("主要模块说明：")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("模块")]),t._v(" "),e("th",[t._v("说明")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("knife4j-aggregation-disk-demo")]),t._v(" "),e("td",[t._v("Knife4j提供的微服务聚合组件，Disk模式下聚合，可参考"),e("RouterLink",{attrs:{to:"/action/aggregation-disk.html"}},[t._v("实战文档")])],1)]),t._v(" "),e("tr",[e("td",[t._v("knife4j-aggregation-cloud-demo")]),t._v(" "),e("td",[t._v("Knife4j提供的微服务聚合组件，Cloud模式下聚合，可参考"),e("RouterLink",{attrs:{to:"/action/aggregation-cloud.html"}},[t._v("实战文档")])],1)]),t._v(" "),e("tr",[e("td",[t._v("knife4j-aggregation-eureka-demo")]),t._v(" "),e("td",[t._v("Knife4j提供的微服务聚合组件，Eureka模式下聚合，可参考"),e("RouterLink",{attrs:{to:"/action/aggregation-eureka.html"}},[t._v("实战文档")])],1)]),t._v(" "),e("tr",[e("td",[t._v("knife4j-aggregation-nacos-demo")]),t._v(" "),e("td",[t._v("Knife4j提供的微服务聚合组件，Disk模式下聚合，可参考"),e("RouterLink",{attrs:{to:"/action/aggregation-nacos.html"}},[t._v("实战文档")])],1)]),t._v(" "),e("tr",[e("td",[t._v("knife4j-springdoc-openapi-demo")]),t._v(" "),e("td",[t._v("在Spring Boot单体架构下集成Knife4j，基于springdoc-openapi以及OpenAPIV3")])]),t._v(" "),e("tr",[e("td",[t._v("knife4j-springfox-boot-v3-demo")]),t._v(" "),e("td",[t._v("在Spring Boot单体架构下集成Knife4j,基于Springfox3以及OpenAPIv3")])]),t._v(" "),e("tr",[e("td",[t._v("knife4j-spring-boot-demo")]),t._v(" "),e("td",[t._v("在Spring Boot架构下集成knife4j的项目示例,主要是基于OpenAPIV2")])]),t._v(" "),e("tr",[e("td",[t._v("knife4j-lower-spring-boot-demo")]),t._v(" "),e("td",[t._v("Spring Boot低版本测试集成Knife4j，主要复测Bug使用。开发者可不用理会")])]),t._v(" "),e("tr",[e("td",[t._v("knife4j-spring-boot-single-demo")]),t._v(" "),e("td",[t._v("在Spring Boot单体架构下集成knife4j的项目示例")])]),t._v(" "),e("tr",[e("td",[t._v("knife4j-spring-boot-fast-demo")]),t._v(" "),e("td",[t._v("Spring Boot单体框架快速集成Knife4j示例，可参考文档"),e("RouterLink",{attrs:{to:"/documentation/get_start.html"}},[t._v("快速开始")])],1)]),t._v(" "),e("tr",[e("td",[t._v("knife4j-spring-oauth2-authorization_code")]),t._v(" "),e("td",[t._v("Knife4j集成OAuth2.0的授权码模式，可参考"),e("RouterLink",{attrs:{to:"/action/oauth2-authorization_code.html"}},[t._v("实战文档")])],1)]),t._v(" "),e("tr",[e("td",[t._v("knife4j-spring-oauth2-implicit")]),t._v(" "),e("td",[t._v("Knife4j集成OAuth2.0的简化模式，可参考"),e("RouterLink",{attrs:{to:"/action/oauth2-implicit.html"}},[t._v("实战文档")])],1)]),t._v(" "),e("tr",[e("td",[t._v("knife4j-spring-oauth2-client_credentials")]),t._v(" "),e("td",[t._v("Knife4j集成OAuth2.0的客户端模式，可参考"),e("RouterLink",{attrs:{to:"/action/oauth2-client_credentials.html"}},[t._v("实战文档")])],1)]),t._v(" "),e("tr",[e("td",[t._v("knife4j-spring-oauth2-password")]),t._v(" "),e("td",[t._v("Knife4j集成OAuth2.0的密码模式，可参考"),e("RouterLink",{attrs:{to:"/action/oauth2-password.html"}},[t._v("实战文档")])],1)]),t._v(" "),e("tr",[e("td",[t._v("knife4j-spring-cloud-gateway")]),t._v(" "),e("td",[t._v("在Spring Cloud微服务架构下通过gateway网集成knife4j的示例")])]),t._v(" "),e("tr",[e("td",[t._v("knife4j-spring-boot2-demo")]),t._v(" "),e("td",[t._v("Spring Boot 2.x系列版本集成Knife4j")])]),t._v(" "),e("tr",[e("td",[t._v("knife4j-jfinal-demo")]),t._v(" "),e("td",[t._v("在JFinal框架中集成Knife4j，目前正在开发中，该示例无效，开发者可不用理会")])]),t._v(" "),e("tr",[e("td",[t._v("swagger-bootstrap-ui-demo-mvc")]),t._v(" "),e("td",[t._v("在Spring MVC模式下集成swagger-bootstrap-ui")])]),t._v(" "),e("tr",[e("td",[t._v("swagger-bootstrap-ui-demo")]),t._v(" "),e("td",[t._v("在Spring Boot单体架构下集成swagger-bootstrap-ui")])]),t._v(" "),e("tr",[e("td",[t._v("swagger-bootstrap-ui-gateway")]),t._v(" "),e("td",[t._v("在Spring Cloud微服务架构下通过gateway网关集成swagger-bootstrap-ui")])]),t._v(" "),e("tr",[e("td",[t._v("swagger-bootstrap-ui-zuul")]),t._v(" "),e("td",[t._v("在Spring Cloud微服务架构下通过zuul网关集成swagger-bootstrap-ui")])])])]),t._v(" "),e("comment-comment")],1)}),[],!1,null,null,null);o.default=r.exports}}]);