(window.webpackJsonp=window.webpackJsonp||[]).push([[207],{567:function(t,s,i){"use strict";i.r(s);var r=i(42),a=Object(r.a)({},(function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[i("h1",{attrs:{id:"个性化设置"}},[i("a",{staticClass:"header-anchor",attrs:{href:"#个性化设置"}},[t._v("#")]),t._v(" 个性化设置")]),t._v(" "),i("p",[i("strong",[t._v("个性化设置")]),t._v("功能是SwaggerBootstrapUi针对本身Ui特点提供的个性化设置功能,主要包括：")]),t._v(" "),i("ul",[i("li",[t._v("开启请求参数缓存")]),t._v(" "),i("li",[t._v("菜单Api地址显示")]),t._v(" "),i("li",[t._v("分组tag显示description说明属性")]),t._v(" "),i("li",[t._v("开启RequestMapping接口类型重复地址过滤")]),t._v(" "),i("li",[t._v("开启SwaggerBootstrapUi增强功能.")])]),t._v(" "),i("p",[t._v("功能目录："),i("strong",[t._v("文档管理 -> 个性化设置")])]),t._v(" "),i("p",[i("img",{attrs:{src:"/knife4j/images/settings.png",alt:""}})]),t._v(" "),i("p",[i("strong",[t._v("开启请求参数缓存")])]),t._v(" "),i("p",[t._v("此功能在在线调试时可见效果,当针对每个接口点击发送调试查看后,后面打开该接口再调试时,默认为保留上一次发送的接口参数信息")]),t._v(" "),i("p",[t._v("如果不想开启此缓存,不勾选此项即可.默认为true,即开启状态")]),t._v(" "),i("p",[i("strong",[t._v("菜单Api地址显示")])]),t._v(" "),i("p",[t._v("菜单Api地址显示是在左侧菜单不显示api地址信息,默认为false,即不显示,默认效果如下图\n"),i("img",{attrs:{src:"/knife4j/images/url-no.png",alt:""}})]),t._v(" "),i("p",[t._v("如果需要左侧菜单栏显示接口地址,则勾选此项接口,显示效果图如下：")]),t._v(" "),i("p",[i("img",{attrs:{src:"/knife4j/images/url-display.png",alt:""}})]),t._v(" "),i("p",[i("strong",[t._v("分组tag显示description说明属性")])]),t._v(" "),i("p",[t._v("tag是否显示代码中的description属性,默认为false,及不显示，如果勾选显示description属性,效果图如下：")]),t._v(" "),i("p",[i("img",{attrs:{src:"/knife4j/images/tag-desc.png",alt:""}})]),t._v(" "),i("p",[i("strong",[t._v("开启RequestMapping接口类型重复地址过滤")])]),t._v(" "),i("p",[t._v("针对后端"),i("code",[t._v("RequestMapping")]),t._v("注解类型的接口,如果开发者没有指定接口类型,默认使用Swagger会生成七个不同类型的接口地址,效果图如下：")]),t._v(" "),i("p",[i("img",{attrs:{src:"/knife4j/images/rp-multipar.png",alt:""}})]),t._v(" "),i("p",[t._v("再某些情况下,开发者可能需要过滤,简化重复的接口文档,此时,开发者通过勾选此选项,并在后面选择显示接口类型的选项,SwaggerBootstrapUi会根据此选项自动过滤")]),t._v(" "),i("p",[t._v("例如勾选，然后默认显示Post类型，则效果如下：")]),t._v(" "),i("p",[i("img",{attrs:{src:"/knife4j/images/rp-multipar-filter.png",alt:""}})]),t._v(" "),i("p",[t._v("此项默认为false,即不开启此项(不过滤).")]),t._v(" "),i("p",[i("strong",[t._v("开启SwaggerBootstrapUi增强功能")])]),t._v(" "),i("p",[t._v("开启此项后,可使用SwaggerBootstrapUi的增强功能,关于增强功能,可参考"),i("RouterLink",{attrs:{to:"/guide/enh-func.html"}},[t._v("增强功能")]),t._v("章节介绍说明")],1),t._v(" "),i("comment-comment")],1)}),[],!1,null,null,null);s.default=a.exports}}]);