(window.webpackJsonp=window.webpackJsonp||[]).push([[196],{600:function(t,s,e){"use strict";e.r(s);var r=e(42),a=Object(r.a)({},(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"关于字段排序"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#关于字段排序"}},[t._v("#")]),t._v(" 关于字段排序")]),t._v(" "),e("p",[t._v("无论是springfox-swagger官方的swagger-ui,还是SwaggerBootstrapUi都没有针对界面文档说明时和后端字段顺序对应的功能")]),t._v(" "),e("p",[t._v("不过SwaggerBootstrapUi在后来的发展中,吸取了开发者的意见,将必填字段和非必填字段进行了排序,必填字段放在最前面,调试时也如此,方便开发者联调测试")]),t._v(" "),e("p",[e("strong",[t._v("字段说明效果如下图")]),t._v("：")]),t._v(" "),e("p",[e("img",{attrs:{src:"/knife4j/images/fieldsort.png",alt:""}})]),t._v(" "),e("p",[e("strong",[t._v("调试效果如下图：")])]),t._v(" "),e("p",[e("img",{attrs:{src:"/knife4j/images/fieldsort-debug.png",alt:""}})]),t._v(" "),e("comment-comment")],1)}),[],!1,null,null,null);s.default=a.exports}}]);