(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{453:function(t,r,a){"use strict";a.r(r);var e=a(42),s=Object(e.a)({},(function(){var t=this,r=t.$createElement,a=t._self._c||r;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"v1-8-6-2018-10-31-spring-mvc接口增强异常"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#v1-8-6-2018-10-31-spring-mvc接口增强异常"}},[t._v("#")]),t._v(" [v1.8.6-2018/10/31 Spring MVC接口增强异常]")]),t._v(" "),a("p",[t._v("swagger-bootstrap-ui 1.8.6 发布了。swagger-bootstrap-ui 是 Swagger 的增强UI 实现，目的是替换 Swagger 默认的 UI 实现 Swagger-UI，使文档更友好一点儿")]),t._v(" "),a("p",[t._v("swagger-bootstrap-ui 1.8.6 主要更新如下：")]),t._v(" "),a("h2",{attrs:{id:"特性增加"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#特性增加"}},[t._v("#")]),t._v(" 特性增加")]),t._v(" "),a("p",[t._v("1、请求参数类型(header|body|query)等以不同颜色着色区分")]),t._v(" "),a("p",[t._v("2、调试栏针对必须项(require=true)时,文本框着红色以区分")]),t._v(" "),a("p",[t._v("3、调试页输入框可通过tab键自动切换上下级输入框.")]),t._v(" "),a("h2",{attrs:{id:"bug修复"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bug修复"}},[t._v("#")]),t._v(" Bug修复")]),t._v(" "),a("p",[t._v("1、修复Spring使用cglib生成的代理类,导致class无法获取Spring的相关注解,导致接口增强排序失败")]),t._v(" "),a("p",[t._v("2、针对basePath属性不是根路径“/”，导致接口排序比对失败，无法排序的问题")]),t._v(" "),a("p",[t._v("3、修复针对SpringCloud通过zuul路由组件加载swagger接口存在basePath属性,增强接口缺失basePath属性的bug,导致增强接口请求失败的问题")]),t._v(" "),a("p",[t._v("4、修复Spring的请求地址仅支持value属性，不支持path属性的bug")]),t._v(" "),a("p",[t._v("5、针对请求头Content-Type中多余空格问题,部分接口调用失败的问题")]),t._v(" "),a("p",[t._v("6、修复针对参数、参数说明太长,导致table换行，样式失效问题.")]),t._v(" "),a("p",[t._v("7、修复针对header、path等参数外，传参只包含body类型无请求json示例的问题.")]),t._v(" "),a("p",[t._v("8、修复针对请求参数存在多个数组,增加按钮无效的BUG.")]),t._v(" "),a("p",[t._v("9、优化离线文档相关的显示格式问题.包括JSON显示格式错乱、添加请求JSON示例、文档开始说明等信息")]),t._v(" "),a("h2",{attrs:{id:"ui效果展示"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ui效果展示"}},[t._v("#")]),t._v(" UI效果展示")]),t._v(" "),a("p",[a("img",{attrs:{src:"/images/blog/swagger-bootstrap-ui-1.8.6-issue/header-json.png",alt:"header-json.png"}})]),t._v(" "),a("p",[a("img",{attrs:{src:"/knife4j/images/blog/swagger-bootstrap-ui-1.8.6-issue/debug-require.png",alt:""}})]),t._v(" "),a("p",[a("img",{attrs:{src:"/knife4j/images/blog/swagger-bootstrap-ui-1.8.6-issue/more-params.png",alt:""}})]),t._v(" "),a("h2",{attrs:{id:"maven坐标"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maven坐标"}},[t._v("#")]),t._v(" Maven坐标")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v("<dependency>\n   <groupId>com.github.xiaoymin</groupId>\n   <artifactId>swagger-bootstrap-ui</artifactId>\n   <version>1.8.6</version>\n</dependency>\n")])])]),a("p",[a("strong",[t._v("码云")]),t._v("："),a("a",{attrs:{href:"https://gitee.com/xiaoym/swagger-bootstrap-ui",target:"_blank",rel:"noopener noreferrer"}},[t._v("https://gitee.com/xiaoym/swagger-bootstrap-ui"),a("OutboundLink")],1)]),t._v(" "),a("p",[a("strong",[t._v("GITHUB")]),t._v(":"),a("a",{attrs:{href:"https://github.com/xiaoymin/Swagger-Bootstrap-UI",target:"_blank",rel:"noopener noreferrer"}},[t._v("https://github.com/xiaoymin/Swagger-Bootstrap-UI"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("在线体验："),a("a",{attrs:{href:"http://swagger-bootstrap-ui.xiaominfo.com/doc.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("http://swagger-bootstrap-ui.xiaominfo.com/doc.html"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("欢迎提BUG、Pull Request给我，共同来完善这个小工具~~~~")]),t._v(" "),a("p",[t._v("还未给swagger-bootstrap-ui点过赞的朋友，前往"),a("a",{attrs:{href:"https://gitee.com/xiaoym/swagger-bootstrap-ui",target:"_blank",rel:"noopener noreferrer"}},[t._v("https://gitee.com/xiaoym/swagger-bootstrap-ui"),a("OutboundLink")],1),t._v("给个Star吧~~ ：）")]),t._v(" "),a("p",[a("strong",[t._v("相关链接")])]),t._v(" "),a("ul",[a("li",[t._v("swagger-bootstrap-ui 的详细介绍："),a("a",{attrs:{href:"https://www.oschina.net/p/swagger-bootstrap-ui",target:"_blank",rel:"noopener noreferrer"}},[t._v("点击查看"),a("OutboundLink")],1)]),t._v(" "),a("li",[t._v("swagger-bootstrap-ui 的下载地址："),a("a",{attrs:{href:"https://git.oschina.net/xiaoym/swagger-bootstrap-ui/releases",target:"_blank",rel:"noopener noreferrer"}},[t._v("点击下载"),a("OutboundLink")],1)])]),t._v(" "),a("comment-comment")],1)}),[],!1,null,null,null);r.default=s.exports}}]);