<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"use strict";(self.webpackChunkgf_site=self.webpackChunkgf_site||[]).push([["11906"],{658741:function(e,t,n){n.r(t),n.d(t,{metadata:()=&gt;r,contentTitle:()=&gt;c,default:()=&gt;f,assets:()=&gt;a,toc:()=&gt;u,frontMatter:()=&gt;s});var r=JSON.parse('{"id":"examples/config/config","title":"\u914D\u7F6E\u7BA1\u7406","description":"GoFrame \u6846\u67B6\u4E2D\u7684\u914D\u7F6E\u7BA1\u7406\u529F\u80FD\u793A\u4F8B","source":"@site/docs/examples/config/config.md","sourceDirName":"examples/config","slug":"/examples/config","permalink":"/examples/config","draft":false,"unlisted":false,"editUrl":"https://github.com/gogf/gf-site/blob/main/docs/examples/config/config.md","tags":[],"version":"current","lastUpdatedBy":"John","lastUpdatedAt":1740107000000,"sidebarPosition":3,"frontMatter":{"title":"\u914D\u7F6E\u7BA1\u7406","slug":"/examples/config","keywords":["\u914D\u7F6E\u7BA1\u7406","goframe"],"description":"GoFrame \u6846\u67B6\u4E2D\u7684\u914D\u7F6E\u7BA1\u7406\u529F\u80FD\u793A\u4F8B","hide_title":true,"sidebar_position":3},"sidebar":"examplesSidebar","previous":{"title":"Swagger\u8BA4\u8BC1","permalink":"/examples/httpserver/swagger-auth"},"next":{"title":"Apollo","permalink":"/examples/config/apollo"}}'),i=n("785893"),l=n("250065"),o=n("203105");let s={title:"\u914D\u7F6E\u7BA1\u7406",slug:"/examples/config",keywords:["\u914D\u7F6E\u7BA1\u7406","goframe"],description:"GoFrame \u6846\u67B6\u4E2D\u7684\u914D\u7F6E\u7BA1\u7406\u529F\u80FD\u793A\u4F8B",hide_title:!0,sidebar_position:3},c="\u914D\u7F6E\u7BA1\u7406\u793A\u4F8B",a={},u=[{value:"\u4ECB\u7ECD",id:"\u4ECB\u7ECD",level:2},{value:"\u6CE8\u610F\u4E8B\u9879",id:"\u6CE8\u610F\u4E8B\u9879",level:2},{value:"\u793A\u4F8B\u5217\u8868",id:"\u793A\u4F8B\u5217\u8868",level:2}];function d(e){let t={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",ol:"ol",p:"p",...(0,l.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"\u914D\u7F6E\u7BA1\u7406\u793A\u4F8B",children:"\u914D\u7F6E\u7BA1\u7406\u793A\u4F8B"})}),"\n",(0,i.jsxs)(t.p,{children:["Github Source: ",(0,i.jsx)(t.a,{href:"https://github.com/gogf/examples/tree/main/config",children:"https://github.com/gogf/examples/tree/main/config"})]}),"\n",(0,i.jsx)(t.h2,{id:"\u4ECB\u7ECD",children:"\u4ECB\u7ECD"}),"\n",(0,i.jsxs)(t.p,{children:["\u672C\u5206\u7C7B\u5305\u542B\u4E86\u4E00\u4E9B\u5728 ",(0,i.jsx)(t.code,{children:"GoFrame"})," \u6846\u67B6\u4E2D\u4F7F\u7528\u914D\u7F6E\u7BA1\u7406\u7EC4\u4EF6\u76F8\u5173\u7684\u793A\u4F8B\u4EE3\u7801\u3002"]}),"\n",(0,i.jsxs)(t.p,{children:["\u4E3B\u8981\u5C55\u793A\u4E86\u5982\u4F55\u4F7F\u7528 ",(0,i.jsx)(t.code,{children:"GoFrame"})," \u5BF9\u63A5\u4E0D\u540C\u914D\u7F6E\u7BA1\u7406\u670D\u52A1\u7684\u80FD\u529B\u3002"]}),"\n",(0,i.jsx)(t.h2,{id:"\u6CE8\u610F\u4E8B\u9879",children:"\u6CE8\u610F\u4E8B\u9879"}),"\n",(0,i.jsxs)(t.ol,{children:["\n",(0,i.jsx)(t.li,{children:"\u793A\u4F8B\u4EE3\u7801\u4E3B\u8981\u7528\u4E8E\u6F14\u793A\u76EE\u7684"}),"\n",(0,i.jsx)(t.li,{children:"\u751F\u4EA7\u73AF\u5883\u4F7F\u7528\u65F6\u9700\u8981\u6839\u636E\u5B9E\u9645\u9700\u6C42\u8FDB\u884C\u8C03\u6574"}),"\n"]}),"\n",(0,i.jsx)(t.h2,{id:"\u793A\u4F8B\u5217\u8868",children:"\u793A\u4F8B\u5217\u8868"}),"\n","\n",(0,i.jsx)(o.Z,{})]})}function f(e={}){let{wrapper:t}={...(0,l.a)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}},203105:function(e,t,n){n.d(t,{Z:()=&gt;j});var r=n("785893");n("667294");var i=n("467026"),l=n("698404"),o=n("531183"),s=n("633876"),c=n("266026"),a=n("434751"),u=n("58608");let d={cardContainer:"cardContainer_fWXF",cardTitle:"cardTitle_rnsV",cardDescription:"cardDescription_PWke"};function f(e){let{href:t,children:n}=e;return(0,r.jsx)(o.Z,{href:t,className:(0,i.Z)("card padding--lg",d.cardContainer),children:n})}function m(e){let{href:t,icon:n,title:l,description:o}=e;return(0,r.jsxs)(f,{href:t,children:[(0,r.jsxs)(u.Z,{as:"h2",className:(0,i.Z)("text--truncate",d.cardTitle),title:l,children:[n," ",l]}),o&amp;&amp;(0,r.jsx)("p",{className:(0,i.Z)("text--truncate",d.cardDescription),title:o,children:o})]})}function h(e){let{item:t}=e,n=(0,l.LM)(t),i=function(){let{selectMessage:e}=(0,s.c)();return t=&gt;e(t,(0,a.I)({message:"1 item|{count} items",id:"theme.docs.DocCard.categoryDescription.plurals",description:"The default description for a category card in the generated index about how many items this category includes"},{count:t}))}();return n?(0,r.jsx)(m,{href:n,icon:"\uD83D\uDDC3\uFE0F",title:t.label,description:t.description??i(t.items.length)}):null}function p(e){let{item:t}=e,n=(0,c.Z)(t.href)?"\uD83D\uDCC4\uFE0F":"\uD83D\uDD17",i=(0,l.xz)(t.docId??void 0);return(0,r.jsx)(m,{href:t.href,icon:n,title:t.label,description:t.description??i?.description})}function g(e){let{item:t}=e;switch(t.type){case"link":return(0,r.jsx)(p,{item:t});case"category":return(0,r.jsx)(h,{item:t});default:throw Error(`unknown item type ${JSON.stringify(t)}`)}}function x(e){let{className:t}=e,n=(0,l.jA)();return(0,r.jsx)(j,{items:n.items,className:t})}function j(e){let{items:t,className:n}=e;if(!t)return(0,r.jsx)(x,{...e});let o=(0,l.MN)(t);return(0,r.jsx)("section",{className:(0,i.Z)("row",n),children:o.map((e,t)=&gt;(0,r.jsx)("article",{className:"col col--6 margin-bottom--lg",children:(0,r.jsx)(g,{item:e})},t))})}},633876:function(e,t,n){n.d(t,{c:function(){return c}});var r=n(667294),i=n(49931);let l=["zero","one","two","few","many","other"];function o(e){return l.filter(t=&gt;e.includes(t))}let s={locale:"en",pluralForms:o(["one","other"]),select:e=&gt;1===e?"one":"other"};function c(){let e=function(){let{i18n:{currentLocale:e}}=(0,i.Z)();return(0,r.useMemo)(()=&gt;{try{return function(e){let t=new Intl.PluralRules(e);return{locale:e,pluralForms:o(t.resolvedOptions().pluralCategories),select:e=&gt;t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".
Docusaurus will fallback to the default (English) implementation.
Error: ${t.message}
`),s}},[e])}();return{selectMessage:(t,n)=&gt;(function(e,t,n){let r=e.split("|");if(1===r.length)return r[0];r.length&gt;n.pluralForms.length&amp;&amp;console.error(`For locale=${n.locale}, a maximum of ${n.pluralForms.length} plural forms are expected (${n.pluralForms.join(",")}), but the message contains ${r.length}: ${e}`);let i=n.select(t);return r[Math.min(n.pluralForms.indexOf(i),r.length-1)]})(n,t,e)}}},250065:function(e,t,n){n.d(t,{Z:function(){return s},a:function(){return o}});var r=n(667294);let i={},l=r.createContext(i);function o(e){let t=r.useContext(l);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),r.createElement(l.Provider,{value:t},e.children)}}}]);</pre></body></html>