{"id":115667,"date":"2026-10-12T23:49:06","date_gmt":"2026-10-12T15:49:06","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/115667.html"},"modified":"2026-10-12T23:49:06","modified_gmt":"2026-10-12T15:49:06","slug":"java-%e8%80%81%e9%a1%b9%e7%9b%ae%e8%af%a5%e4%b8%8d%e8%af%a5%e6%8b%86%e5%be%ae%e6%9c%8d%e5%8a%a1%ef%bc%9f89%e5%a4%84%e4%ba%a4%e5%8f%89%e5%bc%95%e7%94%a8%e3%80%810%e5%a4%84feignclient-%e7%9a%84%e5%ae%9e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/115667.html","title":{"rendered":"Java \u8001\u9879\u76ee\u8be5\u4e0d\u8be5\u62c6\u5fae\u670d\u52a1\uff1f89\u5904\u4ea4\u53c9\u5f15\u7528\u30010\u5904FeignClient \u7684\u5b9e\u6d4b\u7b54\u6848"},"content":{"rendered":"<p>        \/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/<br \/>\n        #content_views .toc,<br \/>\n        \/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/<br \/>\n        #content_views.markdown_views &gt; p:empty:has(+ .toc),<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty,<br \/>\n        \/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/<br \/>\n        #content_views.htmledit_views #main-toc,<br \/>\n        #content_views.htmledit_views #hr-toc,<br \/>\n        #content_views.htmledit_views p[id*=\\&#8221;-toc\\&#8221;] {<br \/>\n          display: none !important;<br \/>\n        }<br \/>\n        \/* \u76ee\u5f55\u53bb\u6389\u540e\uff0c\u7d27\u8ddf\u7684\u9996\u4e2a\u6807\u9898\u4e0d\u518d\u591a\u51fa\u4e00\u5757\u4e0a\u8fb9\u8ddd *\/<br \/>\n        #content_views.markdown_views &gt; .toc + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + h4,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h4 {<br \/>\n          margin-top: 0 !important;<br \/>\n        }<\/p>\n<p>\u8001\u70ae\u8e29\u5751\u5f55 \u00b7 V07 \u00b7 \u8001\u70ae\u89c6\u91ce\u7cfb\u5217 \u57fa\u4e8e\u300c\u4f01\u4e1a\u878d\u5408\u8bc4\u4f30\u5e73\u53f0\u300d\u771f\u5b9e\u6e90\u7801&#xff0c;\u56de\u7b54\u4e00\u4e2a\u6211\u88ab\u95ee\u4e86\u4e09\u6b21\u7684\u95ee\u9898 \u5173\u952e\u8bcd&#xff1a;\u5355\u4f53\u67b6\u6784 \u00b7 \u5fae\u670d\u52a1\u62c6\u5206 \u00b7 \u6a21\u5757\u8026\u5408 \u00b7 \u5206\u5e03\u5f0f\u6210\u672c<\/p>\n<p>&#x1f44b; \u6b22\u8fce\u9605\u8bfb<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261012154904-6acd01703861e.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>&#x1f3e0;\u4e2a\u4eba\u4e3b\u9875&#xff1a; \u77e5\u5b88\u89c2 &#x1f4d8;\u6211\u7684\u4e13\u680f&#xff1a; \u8001\u70ae\u8e29\u5751\u5f55 &#x1f4bb;\u5f53\u524d\u5185\u5bb9&#xff1a;\u5fae\u670d\u52a1\u62c6\u5206\u65b9\u6cd5\u8bba <\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u524d\u8a00<\/li>\n<li>\u8fd9\u4e2a\u5355\u4f53\u957f\u4ec0\u4e48\u6837<\/li>\n<li>\u56db\u4e2a\u5305\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb<\/li>\n<li>\u62c6\u5206\u7684\u57fa\u7840\u6761\u4ef6<\/li>\n<li>\u771f\u62c6\u7684\u8bdd&#xff0c;\u8981\u6539\u52a8\u54ea\u4e9b\u5730\u65b9<\/li>\n<li>\u4ec0\u4e48\u60c5\u51b5\u6211\u624d\u4f1a\u540c\u610f\u62c6<\/li>\n<li>\u4e0d\u62c6&#xff0c;\u4f46\u8981\u628a\u6a21\u5757\u4f9d\u8d56\u7406\u987a<\/li>\n<li>\u8001\u70ae\u70b9\u8bc4<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u524d\u8a00<\/h3>\n<p>\u8fd9\u4e2a\u7cfb\u5217\u5199\u5230\u7b2c\u4e03\u7bc7&#xff0c;\u4e5f\u5feb\u63a5\u8fd1\u5c3e\u58f0\u4e86\u3002<\/p>\n<p>\u8fd9\u6bb5\u65f6\u95f4\u6211\u88ab\u95ee\u5f97\u6700\u591a\u7684\u95ee\u9898\u662f&#xff1a;\u8fd9\u4e2a\u9879\u76ee\u5f53\u5e74\u4e3a\u4ec0\u4e48\u662f\u5355\u4f53&#xff0c;\u600e\u4e48\u4e0d\u62c6\u6210\u5fae\u670d\u52a1\u5462&#xff1f;<\/p>\n<p>\u95ee\u7684\u4eba\u591a\u662f\u5de5\u4f5c\u4e09\u4e94\u5e74\u7684\u540c\u884c\u3002\u5728\u4ed6\u4eec\u7684\u8ba4\u77e5\u91cc&#xff0c;2022 \u5e74\u4e0a\u7ebf\u7684\u9879\u76ee\u8fd8\u6253\u5305\u6210\u5355\u4f53&#xff0c;\u591a\u5c11\u6709\u70b9\u8bf4\u4e0d\u8fc7\u53bb\u3002\u8fd8\u6709\u4e2a\u524d\u540c\u4e8b\u544a\u8bc9\u6211&#xff0c;\u65b0\u6765\u7684\u6280\u672f\u8d1f\u8d23\u4eba\u5230\u5c97\u7b2c\u4e00\u5468\u5c31\u51fa\u4e86\u62c6\u5206\u65b9\u6848&#xff0c;Nacos\u3001Gateway\u3001Sentinel \u7b49\u7b49\u8fd9\u4e9b\u4e3b\u6d41\u4e2d\u95f4\u4ef6\u4e00\u6837\u4e0d\u843d&#xff0c;\u4ed6\u5728\u65b9\u6848\u91cc\u8bf4&#034;\u5355\u4f53\u67b6\u6784\u5df2\u65e0\u6cd5\u652f\u6491\u4e1a\u52a1\u7684\u53d1\u5c55&#034;\u3002<\/p>\n<p>\u6211\u542c\u5b8c\u6ca1\u4ec0\u4e48\u53cd\u5e94\u3002\u7c7b\u4f3c\u7684\u65b9\u6848\u6211\u89c1\u8fc7\u4e0d\u6b62\u4e00\u4efd&#xff0c;\u7406\u7531\u7ffb\u6765\u8986\u53bb\u5c31\u90a3\u4e48\u51e0\u6761\u3002<\/p>\n<p>\u4e0d\u662f\u8bf4\u6211\u53cd\u5bf9\u5fae\u670d\u52a1&#xff0c;\u6211\u4e5f\u62c6\u8fc7&#xff0c;\u4e5f\u63a5\u624b\u7ef4\u62a4\u8fc7\u522b\u4eba\u62c6\u7684\u3002\u6211\u53ea\u662f\u5bf9&#034;\u8be5\u4e0d\u8be5&#034;\u8fd9\u4e09\u4e2a\u5b57\u6709\u751f\u7406\u6027\u8b66\u60d5\u2014\u2014\u5b83\u524d\u9762\u8fd8\u6709\u4e00\u4e2a\u66f4\u6839\u672c\u7684\u95ee\u9898&#xff1a;\u4e3a\u4ec0\u4e48\u8981\u62c6\u3002<\/p>\n<p>\u4eca\u5929\u6211\u4eec\u5c31\u62ff\u8fd9\u4e2a\u8001\u9879\u76ee\u5f53\u6837\u672c&#xff0c;\u628a\u62c6\u5206\u7684\u6210\u672c\u4e00\u9879\u9879\u7b97\u6e05\u695a\u3002\u4e8b\u5148\u8bf4\u660e&#xff0c;\u6240\u6709\u6570\u5b57\u90fd\u662f\u6211\u4ece\u6e90\u7801\u91cc\u5b9e\u9645\u6570\u51fa\u6765\u7684&#xff0c;\u4f46\u6211\u79bb\u804c\u4e24\u5e74\u4e86&#xff0c;\u56e2\u961f\u73b0\u5728\u51e0\u4e2a\u4eba\u6211\u662f\u542c\u8bf4\u7684&#xff0c;\u4e0d\u6562\u6253\u5305\u7968\u3002<\/p>\n<h3>\u8fd9\u4e2a\u5355\u4f53\u957f\u4ec0\u4e48\u6837<\/h3>\n<p>\u5148\u4ea4\u4ee3\u4e00\u4e0b\u8fd9\u4e2a\u9879\u76ee\u7684\u57fa\u672c\u60c5\u51b5\u3002<\/p>\n<p>\u8fd9\u4e2a\u9879\u76ee\u662f\u4e00\u4e2a WAR \u5305&#xff0c;\u5916\u7f6e Tomcat&#xff0c;\u4e24\u53f0\u673a\u5668&#xff0c;\u524d\u9762\u6709\u8d1f\u8f7d\u5747\u8861\u7ec4\u4ef6\u3002224 \u4e2a Java \u6587\u4ef6&#xff0c;30 \u4e2a Controller&#xff0c;33 \u4e2a Mapper\u3002\u5c31\u8fd9\u4e2a\u4f53\u91cf&#xff0c;\u653e\u4efb\u4f55\u4e00\u4e2a\u505a\u8fc7\u7535\u5546\u7684\u4eba\u773c\u91cc&#xff0c;\u8fd9\u53eb\u5c0f\u9879\u76ee\u3002<\/p>\n<p>\u4e1a\u52a1\u7684\u4f7f\u7528\u89c4\u5f8b\u4e5f\u8981\u4ea4\u4ee3\u4e00\u4e0b\u3002\u4f01\u4e1a\u878d\u5408\u8bc4\u4f30\u5e73\u53f0&#xff0c;\u6ce8\u518c\u671f\u4f01\u4e1a\u96c6\u4e2d\u586b\u62a5&#xff0c;\u804c\u80fd\u90e8\u95e8\u9010\u7ea7\u63a8\u8350&#xff0c;\u540e\u53f0\u5ba1\u6838\u51fa\u62a5\u544a&#xff0c;\u4e00\u4e2a\u6279\u6b21\u8d70\u5b8c\u5c31\u6b47\u4e00\u9635\u3002\u5e73\u65f6\u6ca1\u591a\u5c11\u6d41\u91cf&#xff0c;\u5fd9\u4e5f\u5c31\u5fd9\u90a3\u51e0\u5468\u3002<\/p>\n<p>\u4ee3\u7801\u91cc\u6709\u4e2a\u6570\u5b57\u6bd4\u4efb\u4f55\u6587\u6863\u90fd\u8bda\u5b9e\u3002\u9274\u6743\u5207\u9762\u91cc\u767b\u5f55\u6001\u7f13\u5b58\u7684\u5bb9\u91cf&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ AuthAspect.java<\/span><br \/>\n<span class=\"token keyword\">private<\/span> <span class=\"token keyword\">static<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token class-name\">Cache<\/span><span class=\"token generics\"><span class=\"token punctuation\">&lt;<\/span><span class=\"token class-name\">String<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">Object<\/span><span class=\"token punctuation\">&gt;<\/span><\/span> <span class=\"token constant\">CACHES<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token class-name\">CacheBuilder<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">newBuilder<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token punctuation\">.<\/span><span class=\"token function\">maximumSize<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">50<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token punctuation\">.<\/span><span class=\"token function\">expireAfterWrite<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">30<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">TimeUnit<\/span><span class=\"token punctuation\">.<\/span><span class=\"token constant\">MINUTES<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token punctuation\">.<\/span><span class=\"token function\">build<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>maximumSize(50)\u3002\u5f53\u5e74\u5199\u8fd9\u884c\u4ee3\u7801\u7684\u4eba&#xff0c;\u7ed9\u540c\u65f6\u5728\u7ebf\u7528\u6237\u7559\u7684\u5bb9\u91cf\u662f 50\u3002\u8fd9\u4e2a\u6570\u53ef\u80fd\u662f\u62cd\u7684&#xff0c;\u4f46\u5b83\u53cd\u6620\u4e86\u5f53\u5e74\u56e2\u961f\u5bf9\u5e76\u53d1\u7684\u9884\u671f&#xff0c;\u800c\u4e14\u4ece\u6ca1\u51fa\u8fc7\u4e8b\u3002\u4e00\u4e2a\u6309\u51e0\u5341\u5e76\u53d1\u8bbe\u8ba1\u7684\u6279\u6b21\u578b\u653f\u52a1\u5e73\u53f0&#xff0c;\u8ddf&#034;\u65e0\u6cd5\u652f\u6491\u4e1a\u52a1\u53d1\u5c55&#034;\u4e4b\u95f4\u9694\u7740\u597d\u51e0\u4e2a\u91cf\u7ea7\u3002<\/p>\n<p>\u987a\u5e26\u8bf4\u4e00\u53e5&#xff0c;\u4e24\u53f0\u673a\u5668\u65e9\u5c31\u8bf4\u660e\u8fd9\u5355\u4f53\u505a\u8fc7\u6c34\u5e73\u6269\u5c55\u4e86\u3002Java \u96ea\u82b1\u7b97\u6cd5 ID \u91cd\u590d\u6392\u67e5 \u8fd9\u7bc7\u91cc\u5199\u8fc7\u96ea\u82b1 ID \u7ffb\u8f66&#xff0c;\u4e24\u53f0\u673a\u5668 workerId \u914d\u6210\u4e00\u6837&#xff0c;\u751f\u6210\u91cd\u590d ID\u2014\u2014\u90a3\u6b21\u4e8b\u6545\u53cd\u8fc7\u6765\u8bc1\u660e\u90e8\u7f72\u5f62\u6001\u5c31\u662f\u53cc\u673a\u5206\u644a&#xff0c;\u6ca1\u6709\u5355\u673a\u786c\u625b\u3002<\/p>\n<h3>\u56db\u4e2a\u5305\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb<\/h3>\n<p>\u9879\u76ee\u6309\u4e1a\u52a1\u5206\u4e86\u56db\u4e2a\u5305&#xff1a;sys&#xff08;\u7cfb\u7edf\u7ba1\u7406&#xff09;\u3001rapply&#xff08;\u62a5\u540d\u7533\u8bf7&#xff09;\u3001elec&#xff08;\u7535\u5b50\u7533\u62a5&#xff09;\u3001common&#xff08;\u516c\u5171&#xff09;\u3002\u5305\u7ed3\u6784\u770b\u8d77\u6765\u633a\u8bb2\u9053\u7406\u3002\u6709\u4e00\u5929\u4e0b\u5348\u6211\u95f2\u7740\u65e0\u4e8b&#xff0c;\u60f3\u770b\u770b\u8fd9\u4e09\u4e2a\u4e1a\u52a1\u5305\u4e4b\u95f4\u4e92\u76f8\u4f9d\u8d56\u5230\u4ec0\u4e48\u7a0b\u5ea6&#xff0c;\u5c31 grep \u4e86\u4e00\u628a import&#xff0c;\u7ed3\u679c\u5982\u4e0b&#xff1a;<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261012154904-6acd0170c8fa8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>rapply \u5f15\u7528 sys \u7684\u5730\u65b9&#xff0c;48 \u5904\u3002<\/li>\n<li>elec \u5f15 rapply&#xff0c;16 \u5904\u3002<\/li>\n<li>sys \u5f15 rapply&#xff0c;10 \u5904\u3002<\/li>\n<li>elec \u5f15 sys&#xff0c;8 \u5904\u3002<\/li>\n<li>rapply \u5f15 elec&#xff0c;5 \u5904\u3002<\/li>\n<li>sys \u5f15 elec&#xff0c;2 \u5904\u3002<\/li>\n<\/ul>\n<p>\u52a0\u8d77\u6765 89 \u5904&#xff0c;\u516d\u4e2a\u65b9\u5411\u5168\u6709\u2014\u2014\u7406\u8bba\u4e0a\u4e09\u4e2a\u5305\u6700\u591a\u4e5f\u5c31\u516d\u4e2a\u4f9d\u8d56\u65b9\u5411\u3002<\/p>\n<p>\u8fd9\u5c31\u662f\u5305\u7ea7\u522b\u7684\u5faa\u73af\u4f9d\u8d56\u3002<\/p>\n<p>\u6570\u5b57\u662f\u4e00\u65b9\u9762&#xff0c;\u66f4\u96be\u770b\u7684\u662f\u5f15\u7528\u7684\u5c42\u6b21\u3002\u6309\u7406\u8bf4\u6a21\u5757\u4e4b\u95f4\u8981\u8c03&#xff0c;\u4e5f\u8be5\u8c03\u5bf9\u65b9\u7684 Service \u63a5\u53e3\u3002rapply \u4e0d\u7ba1\u8fd9\u4e2a&#xff0c;\u5b83\u76f4\u63a5\u6ce8\u5165 sys \u7684 Mapper&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ rapply \u7684 ApplyInfoDeptServiceImpl<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">com<span class=\"token punctuation\">.<\/span>xiaomayi<span class=\"token punctuation\">.<\/span>sys<span class=\"token punctuation\">.<\/span>mapper<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">SysAreaMapper<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">com<span class=\"token punctuation\">.<\/span>xiaomayi<span class=\"token punctuation\">.<\/span>sys<span class=\"token punctuation\">.<\/span>mapper<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">SysEnterpriseTypeMapper<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">com<span class=\"token punctuation\">.<\/span>xiaomayi<span class=\"token punctuation\">.<\/span>sys<span class=\"token punctuation\">.<\/span>mapper<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">SysIndustryMapper<\/span><\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u7ed5\u8fc7\u4eba\u5bb6\u7684 Service \u5c42&#xff0c;\u76f4\u63a5\u67e5\u4eba\u5bb6\u7684\u8868\u3002<\/p>\n<p>elec \u8fd9\u8fb9\u66f4\u8fc7\u5206&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ elec \u7684 ApplyElecInfoServiceImpl<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">com<span class=\"token punctuation\">.<\/span>xiaomayi<span class=\"token punctuation\">.<\/span>rapply<span class=\"token punctuation\">.<\/span>mapper<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">ApplyEnterpriseBaseinfoMapper<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">com<span class=\"token punctuation\">.<\/span>xiaomayi<span class=\"token punctuation\">.<\/span>rapply<span class=\"token punctuation\">.<\/span>service<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">EnterpriseRegistService<\/span><\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token import\"><span class=\"token namespace\">com<span class=\"token punctuation\">.<\/span>xiaomayi<span class=\"token punctuation\">.<\/span>rapply<span class=\"token punctuation\">.<\/span>service<span class=\"token punctuation\">.<\/span>impl<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">HuaweiyunFileServiceImpl<\/span><\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>Mapper \u76f4\u63a5\u7528&#xff0c;\u63a5\u53e3\u4e5f\u7528&#xff0c;\u6700\u540e\u4e00\u884c\u628a\u5bf9\u65b9\u7684 ServiceImpl \u5b9e\u73b0\u7c7b \u90fd import \u8fdb\u6765\u4e86&#xff0c;\u8fde\u5b9e\u73b0\u7c7b\u90fd\u4e0d\u653e\u8fc7\u5440\u3002<\/p>\n<p>\u8fd9 89 \u5904\u610f\u5473\u7740\u4ec0\u4e48&#xff1f;\u771f\u62c6\u6210\u5fae\u670d\u52a1&#xff0c;\u6bcf\u4e00\u5904\u90fd\u5f97\u505a\u4e2a\u51b3\u5b9a&#xff1a;\u6539\u6210\u8fdc\u7a0b\u8c03\u7528&#xff0c;\u8fd8\u662f\u6570\u636e\u5197\u4f59\u4e00\u4efd&#xff0c;\u8fd8\u662f\u5e72\u8106\u628a\u8868\u632a\u8fc7\u53bb\u3002\u4f46\u662f\u6ca1\u6709\u54ea\u4e2a\u51b3\u5b9a\u662f\u8f7b\u677e\u7684\u3002<\/p>\n<h3>\u62c6\u5206\u7684\u57fa\u7840\u6761\u4ef6<\/h3>\n<p>\u62c6\u5fae\u670d\u52a1\u9700\u8981\u54ea\u4e9b\u57fa\u7840&#xff0c;\u6211\u987a\u624b\u67e5\u4e86\u4e00\u904d\u3002<\/p>\n<p><span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-r<\/span> <span class=\"token string\">&#034;&#064;FeignClient\\\\|&#064;Reference&#034;<\/span> src\/          <span class=\"token comment\"># 0 \u5904<\/span><br \/>\n<span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-r<\/span> <span class=\"token string\">&#034;RabbitTemplate\\\\|RabbitListener&#034;<\/span> src\/    <span class=\"token comment\"># 0 \u5904<\/span><\/p>\n<p>\u8fdc\u7a0b\u8c03\u7528&#xff0c;\u96f6\u3002\u6d88\u606f\u961f\u5217&#xff0c;\u96f6\u3002\u5168\u9879\u76ee\u6ca1\u6709\u4efb\u4f55\u4e24\u4e2a\u670d\u52a1\u4e4b\u95f4\u901a\u4fe1\u7684\u57fa\u7840\u3002<\/p>\n<p>\u6709\u610f\u601d\u7684\u662f pom.xml \u91cc\u8eba\u7740\u8fd9\u4e48\u4e2a\u4e1c\u897f&#xff1a;<\/p>\n<p><span class=\"token comment\">&lt;!&#8211; pom.xml &#8211;&gt;<\/span><br \/>\n<span class=\"token comment\">&lt;!&#8211;rabbitMq &#8211;&gt;<\/span><br \/>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>org.springframework.boot<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>groupId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>spring-boot-starter-amqp<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>artifactId<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>dependency<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p>RabbitMQ \u4f9d\u8d56\u52a0\u8fdb\u6765\u4e86&#xff0c;\u5168\u9879\u76ee\u4e00\u6761\u6d88\u606f\u6ca1\u53d1\u8fc7\u3002\u6211\u731c\u662f\u5f53\u5e74\u6709\u4eba&#034;\u4e3a\u4ee5\u540e\u62c6\u670d\u52a1\u505a\u51c6\u5907&#034;\u7559\u7684\u3002\u4e09\u5e74\u8fc7\u53bb&#xff0c;\u4f9d\u8d56\u8eba\u5728\u90a3\u513f&#xff0c;\u51c6\u5907\u5de5\u4f5c\u4e00\u9879\u6ca1\u505a\u3002<\/p>\n<p>\u8fd9\u79cd\u60c5\u51b5\u5728\u62c6\u5206\u6539\u9020\u91cc\u592a\u5e38\u89c1\u4e86&#xff1a;\u4ee5\u4e3a\u52a0\u4e86\u4f9d\u8d56\u5c31\u7b97\u94fa\u4e86\u8def&#xff0c;\u5176\u5b9e\u8def\u8fd8\u662f\u90a3\u6761\u8def\u3002<\/p>\n<h3>\u771f\u62c6\u7684\u8bdd&#xff0c;\u8981\u6539\u52a8\u54ea\u4e9b\u5730\u65b9<\/h3>\n<p>\u4e0a\u9762\u8fd8\u662f\u94fa\u57ab\u3002\u771f\u628a PPT \u65b9\u6848\u843d\u5730&#xff0c;\u52a8\u7684\u662f\u8fd9\u4e9b&#xff1a;<\/p>\n<p>\u767b\u5f55\u6001\u5f97\u91cd\u505a\u3002 \u73b0\u5728\u7684\u8ba4\u8bc1\u662f Cookie &#043; Token &#043; Guava \u672c\u5730\u7f13\u5b58&#xff0c;\u7528\u6237\u4fe1\u606f\u5b58\u5728 JVM \u5185\u5b58\u91cc\u3002\u5355\u4f53\u53cc\u673a\u5df2\u7ecf\u5728\u9760\u8d1f\u8f7d\u5747\u8861\u7684\u4f1a\u8bdd\u4fdd\u6301\u786c\u6491\u4e86\u3002\u62c6\u6210\u4e94\u4e2a\u670d\u52a1&#xff0c;\u6bcf\u4e2a\u670d\u52a1\u90fd\u5f97\u9a8c\u8eab\u4efd&#xff0c;\u8981\u4e48\u4e0a Redis \u96c6\u4e2d\u5b58 Token\u3001\u7f51\u5173\u7edf\u4e00\u9274\u6743&#xff0c;\u8981\u4e48\u4e94\u4e2a\u670d\u52a1\u5404\u5199\u4e00\u5957\u3002\u73b0\u5728\u90a3\u4e2a AuthAspect \u5207\u9762\u62e6\u7684\u662f\u8fdb\u7a0b\u5185\u7684 Controller&#xff0c;\u62c6\u5b8c\u4e4b\u540e\u5b83\u8c01\u4e5f\u62e6\u4e0d\u4f4f\u3002<\/p>\n<p>89 \u5904\u8c03\u7528\u9010\u4e2a\u5904\u7406\u3002 rapply \u76f4\u67e5 sys \u7684\u8868\u8fd9\u79cd&#xff0c;\u8981\u4e48 sys \u66b4\u9732\u63a5\u53e3&#xff0c;\u8981\u4e48\u4e24\u4e2a\u670d\u52a1\u5171\u5e93\u2014\u2014\u5fae\u670d\u52a1\u91cc\u6700\u4e11\u7684\u90a3\u79cd\u5171\u5e93\u3002\u62c6\u4e4b\u524d\u8fd9\u662f\u4e00\u6b21\u8fdb\u7a0b\u5185\u8c03\u7528&#xff0c;\u7eb3\u79d2\u7ea7&#xff1b;\u62c6\u4e4b\u540e\u662f\u7f51\u7edc\u8c03\u7528&#xff0c;\u9644\u8d60\u5e8f\u5217\u5316\u3001\u8d85\u65f6\u3001\u91cd\u8bd5\u3001\u7194\u65ad\u4e00\u6574\u5957\u300289 \u5904&#xff0c;\u6bcf\u4e00\u5904\u3002<\/p>\n<p>\u4e8b\u52a1\u7684\u5904\u7406\u65b9\u5f0f\u5168\u53d8\u4e86\u3002 \u5168\u9879\u76ee 14 \u5904 &#064;Transactional&#xff0c;\u62a5\u540d\u3001\u8bca\u65ad\u3001\u62a5\u544a\u751f\u6210&#xff0c;\u5168\u662f\u8de8\u6a21\u5757\u5199\u6570\u636e\u3002\u672c\u5730\u4e8b\u52a1\u62c6\u5b8c\u5c31\u662f\u5206\u5e03\u5f0f\u4e8b\u52a1\u3002\u6211\u4e3a\u4ec0\u4e48\u5bf9\u8fd9\u5355\u6ca1\u4fe1\u5fc3&#xff1f;Transactional \u4e8b\u52a1\u5931\u6548\u6392\u67e5\u8fd9\u7bc7\u4e2d\u5199\u8fc7&#xff0c;\u8fd9\u4e2a\u9879\u76ee\u8fde\u672c\u5730\u4e8b\u52a1\u90fd\u7528\u9519\u8fc7\u2014\u2014catch \u541e\u4e86\u5f02\u5e38\u5bfc\u81f4\u56de\u6eda\u9759\u9ed8\u5931\u6548&#xff0c;\u67e5\u4e86\u4e09\u5929\u3002\u8fde\u672c\u5730\u4e8b\u52a1\u7684\u5751\u90fd\u6ca1\u586b\u5229\u7d22&#xff0c;\u76f4\u63a5\u4e0a Seata&#xff0c;\u6211\u529d\u4f60\u51b7\u9759\u3002<\/p>\n<p>\u5b9a\u65f6\u4efb\u52a1\u4e5f\u8981\u5904\u7406\u3002 2 \u4e2a &#064;Scheduled&#xff0c;\u53cc\u673a\u90e8\u7f72\u672c\u6765\u5c31\u6709\u91cd\u590d\u6267\u884c\u7684\u98ce\u9669&#xff0c;\u62c6\u5b8c\u8981\u4e48\u5206\u5e03\u5f0f\u8c03\u5ea6&#xff0c;\u8981\u4e48\u5206\u5e03\u5f0f\u9501\u3002\u6536\u76ca\u4e3a\u96f6&#xff0c;\u5de5\u4f5c\u91cf\u5b9e\u6253\u5b9e\u3002<\/p>\n<p>\u8fd0\u7ef4\u7ffb\u500d\u3002 \u73b0\u5728\u662f\u4e24\u4e2a Tomcat&#xff0c;\u65e5\u5fd7\u5728\u672c\u5730\u78c1\u76d8&#xff0c;\u51fa\u95ee\u9898 ssh \u4e0a\u53bb tail \u4e00\u4e0b\u3002\u62c6\u5b8c\u662f\u4e94\u516d\u4e2a\u670d\u52a1\u52a0\u6ce8\u518c\u4e2d\u5fc3\u3001\u914d\u7f6e\u4e2d\u5fc3\u3001\u7f51\u5173\u3001\u94fe\u8def\u8ffd\u8e2a&#xff0c;\u6bcf\u4e2a\u7ec4\u4ef6\u90fd\u8981\u6709\u4eba\u88c5\u3001\u6709\u4eba\u76ef\u3001\u6709\u4eba\u534a\u591c\u722c\u8d77\u6765\u5904\u7406\u544a\u8b66\u3002<\/p>\n<p>\u6700\u540e\u662f\u4eba\u3002\u6211\u79bb\u804c\u65f6\u540e\u7aef\u4e09\u56db\u4e2a\u4eba&#xff0c;\u542c\u524d\u540c\u4e8b\u7684\u610f\u601d&#xff0c;\u73b0\u5728\u4e5f\u6ca1\u6269\u7f16\u3002\u4e09\u56db\u4e2a\u4eba\u5b88\u4e94\u4e2a\u5fae\u670d\u52a1\u5916\u52a0\u4e00\u6574\u5957\u4e2d\u95f4\u4ef6&#xff0c;\u5e73\u5747\u6bcf\u4eba\u644a\u4e0d\u5230\u4e00\u4e2a\u670d\u52a1&#xff0c;\u4f46\u6bcf\u4e2a\u4eba\u90fd\u5f97\u5168\u61c2\u3002<\/p>\n<h3>\u4ec0\u4e48\u60c5\u51b5\u6211\u624d\u4f1a\u540c\u610f\u62c6<\/h3>\n<p>\u6211\u62c6\u8fc7\u5fae\u670d\u52a1&#xff0c;\u6240\u4ee5\u6211\u77e5\u9053\u4ec0\u4e48\u60c5\u51b5\u51fa\u73b0\u65f6\u503c\u5f97\u62c6\u3002<\/p>\n<li>\n<p>\u4e00\u4e2a\u662f\u4eba\u591a\u5230\u4e92\u76f8\u6321\u8def\u3002\u5341\u51e0\u4e2a\u540e\u7aef\u6324\u5728\u4e00\u4e2a\u4ee3\u7801\u5e93\u91cc&#xff0c;\u6539\u4e2a pom \u8981\u7b49\u4e09\u4e2a\u4eba review&#xff0c;\u53d1\u5e03\u7a97\u53e3\u62a2\u7834\u5934\u2014\u2014\u8fd9\u65f6\u62c6\u7684\u662f\u534f\u4f5c\u8fb9\u754c&#xff0c;\u62c6\u5b8c\u5404\u73a9\u5404\u7684\u3002\u8fd9\u4e2a\u9879\u76ee\u4e09\u56db\u4e2a\u4eba&#xff0c;\u4e0d\u5b58\u5728\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e00\u4e2a\u662f\u67d0\u4e2a\u6a21\u5757\u53d1\u5e03\u9891\u7387\u8fdc\u9ad8\u4e8e\u5176\u4ed6&#xff0c;\u6bcf\u6b21\u53d1\u5e03\u90fd\u62d6\u7740\u5168\u7ad9\u91cd\u542f\u3002\u8fd9\u4e2a\u9879\u76ee\u6309\u6279\u6b21\u8fed\u4ee3&#xff0c;\u6574\u4f53\u4e00\u8d77\u53d1&#xff0c;\u4e5f\u4e0d\u5b58\u5728\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e00\u4e2a\u662f\u67d0\u4e2a\u6a21\u5757\u7684\u8d44\u6e90\u6d88\u8017\u62d6\u57ae\u6574\u4f53\u3002\u8fd9\u4e2a\u9879\u76ee\u786e\u5b9e\u6709\u538b\u529b\u70b9&#xff0c;\u5728\u5bfc\u51fa\u2014\u2014POI \u751f\u6210\u5927 Excel\u3001HTML \u8f6c PDF&#xff0c;\u4e00\u8dd1 CPU \u5c31\u6ee1&#xff0c;\u767e\u4e07\u7ea7\u6570\u636e\u5bfc\u51faOOM\u89e3\u51b3 \u8fd9\u7bc7\u4e2d\u5199\u8fc7 OOM \u662f\u600e\u4e48\u6765\u7684\u3002\u4f46\u8fd9\u4e2a\u6709\u4fbf\u5b9c\u5f97\u591a\u7684\u89e3\u6cd5&#xff1a;\u5bfc\u51fa\u4efb\u52a1\u6254\u6d88\u606f\u961f\u5217\u5f02\u6b65\u8dd1&#xff0c;RabbitMQ \u4f9d\u8d56\u90fd\u8eba\u4e09\u5e74\u4e86&#xff0c;\u6b63\u597d\u7528\u4e0a&#xff1b;\u6216\u8005\u540c\u4e00\u4efd WAR \u5355\u72ec\u90e8\u7f72\u4e00\u53f0\u5bfc\u51fa\u4e13\u7528\u8282\u70b9\u3002\u90fd\u4e0d\u9700\u8981\u5fae\u670d\u52a1\u6846\u67b6\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fd8\u6709\u4e00\u4e2a\u662f\u6a21\u5757\u8fb9\u754c\u5929\u7136\u5e72\u51c0\u3001\u6570\u636e\u4ea4\u4e92\u5c11&#xff0c;\u62c6\u8d77\u6765\u4e0d\u4f24\u7b4b\u52a8\u9aa8\u3002\u8fd9\u4e2a\u9879\u76ee\u6709 89 \u5904\u4ea4\u53c9\u5f15\u7528&#xff0c;\u8fd9\u6761\u663e\u7136\u4e5f\u4e0d\u6ee1\u8db3\u3002 \u56db\u79cd\u60c5\u51b5&#xff0c;\u8fd9\u4e2a\u9879\u76ee\u4e00\u79cd\u90fd\u4e0d\u5360\u3002<\/p>\n<\/li>\n<h3>\u4e0d\u62c6&#xff0c;\u4f46\u8981\u628a\u6a21\u5757\u4f9d\u8d56\u7406\u987a<\/h3>\n<p>\u6211\u7684\u7ed3\u8bba\u5c31\u4e24\u4e2a\u5b57&#xff1a;\u4e0d\u62c6\u3002<\/p>\n<p>\u4f46&#034;\u4e0d\u62c6&#034;\u4e0d\u80fd\u662f\u53e5\u53f7&#xff0c;\u95ee\u9898\u672c\u8eab\u8fd8\u5728\u90a3\u513f\u3002\u8fd9 89 \u5904\u4ea4\u53c9\u5f15\u7528\u672c\u8eab\u5c31\u662f\u503a&#xff0c;\u5355\u4f53\u72b6\u6001\u4e0b\u4e5f\u5f97\u8fd8\u2014\u2014\u8fd8\u7684\u65b9\u5411\u662f\u6536\u655b\u6210\u5355\u5411\u4f9d\u8d56&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261012154905-6acd017105eb1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>sys \u662f\u5e95\u5ea7&#xff0c;rapply \u548c elec \u4e92\u4e0d\u5f15\u7528\u3002rapply \u76f4\u63d2 sys Mapper \u7684\u90a3\u4e9b\u8c03\u7528&#xff0c;\u6536\u56de\u5230 sys \u7684 Service \u63a5\u53e3\u540e\u9762&#xff1b;elec \u5f15\u7528\u522b\u4eba ServiceImpl \u7684\u5730\u65b9&#xff0c;\u6539\u6210\u4f9d\u8d56\u63a5\u53e3\u3002<\/p>\n<p>\u8fd9\u7b14\u503a\u4e0d\u8fd8&#xff0c;&#034;\u62c6\u5fae\u670d\u52a1&#034;\u5c31\u53ea\u662f\u628a\u8fdb\u7a0b\u5185\u7684\u4e71\u642c\u5230\u7f51\u4e0a\u3002\u4ee5\u524d\u5faa\u73af\u4f9d\u8d56\u7f16\u8bd1\u5668\u5e2e\u4f60\u62a5\u9519&#xff0c;\u62c6\u5b8c\u4e4b\u540e&#xff0c;\u662f\u534a\u591c\u7684\u670d\u52a1\u8d85\u65f6\u627e\u4f60\u804a\u5929\u3002<\/p>\n<p>\u54ea\u5929\u8fd9\u4e9b\u771f\u505a\u5b8c\u4e86&#xff0c;\u4f9d\u8d56\u65b9\u5411\u7406\u987a\u4e86&#xff0c;\u767b\u5f55\u6001\u62bd\u8c61\u51fa\u6765\u4e86&#xff0c;\u6a21\u5757\u8fb9\u754c\u5e72\u51c0\u4e86\u2014\u2014\u90a3\u65f6\u5019\u56e2\u961f\u8981\u662f\u771f\u6269\u5230\u5341\u51e0\u4e2a\u4eba\u3001\u4e1a\u52a1\u771f\u6da8\u8d77\u6765\u4e86&#xff0c;\u518d\u62c6&#xff0c;\u662f\u987a\u6c34\u63a8\u821f\u7684\u4e8b\u3002\u5355\u4f53\u6536\u62fe\u5f97\u5e72\u5e72\u51c0\u51c0&#xff0c;\u60f3\u62c6\u968f\u65f6\u80fd\u62c6\u3002\u5355\u4f53\u672c\u8eab\u7684\u4f9d\u8d56\u8981\u662f\u4e71\u7684&#xff0c;\u62c6\u6210\u5fae\u670d\u52a1\u4e4b\u540e\u8fd8\u662f\u4e71\u7684&#xff0c;\u53ea\u4e0d\u8fc7\u8c03\u7528\u65b9\u5f0f\u4ece\u8fdb\u7a0b\u5185\u8c03\u7528\u53d8\u6210\u4e86\u8fdc\u7a0b\u8c03\u7528\u3002<\/p>\n<h3>\u8001\u70ae\u70b9\u8bc4<\/h3>\n<p>\u5199\u5230\u6700\u540e&#xff0c;\u8bf4\u53e5\u638f\u5fc3\u7a9d\u7684\u8bdd\u3002<\/p>\n<p>\u5fae\u670d\u52a1\u8fd9\u5242\u836f&#xff0c;\u6cbb\u7684\u662f\u7ec4\u7ec7\u7684\u75c5&#xff1a;\u56e2\u961f\u5927\u3001\u53d1\u5e03\u4e92\u76f8\u6321\u3001\u8282\u594f\u6253\u67b6\u3002\u8fd9\u4e2a\u9879\u76ee\u5f97\u7684\u662f\u4ee3\u7801\u7684\u75c5\u2014\u20141600 \u884c\u7684 Controller\u3001ThreadLocal \u4e32\u7528\u6237\u6570\u636e\u3001\u4e8b\u52a1\u541e\u5f02\u5e38\u4e0d\u56de\u6eda\u3002\u8fd9\u4e9b\u75c5\u62c6\u6210\u5fae\u670d\u52a1\u4e00\u4e2a\u90fd\u6cbb\u4e0d\u4e86&#xff0c;1600 \u884c\u4e0d\u4f1a\u56e0\u4e3a\u642c\u8fdb&#034;\u670d\u52a1&#034;\u5c31\u53d8\u77ed&#xff0c;\u5b83\u53ea\u4f1a\u53d8\u6210\u4e00\u4e2a\u6709 1600 \u884c\u4ee3\u7801\u7684\u5fae\u670d\u52a1&#xff0c;\u5916\u52a0\u5206\u5e03\u5f0f\u4e8b\u52a1\u548c\u8de8\u670d\u52a1\u6392\u67e5\u94fe\u8def\u3002<\/p>\n<p>\u5fae\u670d\u52a1\u6cbb\u7684\u662f\u7ec4\u7ec7\u7684\u75c5&#xff0c;\u4e0d\u662f\u4ee3\u7801\u7684\u75c5<\/p>\n<p>\u6240\u4ee5\u518d\u6709\u4eba\u95ee\u4f60&#034;\u8fd9\u4e2a\u9879\u76ee\u8be5\u4e0d\u8be5\u62c6&#034;&#xff0c;\u522b\u6025\u7740\u7b54&#xff0c;\u5148\u95ee\u56de\u53bb&#xff1a;\u4e3a\u4ec0\u4e48\u8981\u62c6&#xff1f;<\/p>\n<p>\u7b54\u5f97\u4e0a\u5177\u4f53\u7684\u2014\u2014\u54ea\u4e2a\u6a21\u5757\u3001\u6321\u4e86\u8c01\u7684\u53d1\u5e03\u3001\u62d6\u57ae\u4e86\u8c01\u7684\u8d44\u6e90\u2014\u2014\u4e00\u6761\u6761\u5bf9&#xff0c;\u5bf9\u5f97\u4e0a\u518d\u8c08\u62c6\u3002\u7b54\u4e0d\u4e0a\u6765&#xff0c;\u53ea\u4f1a\u4e00\u53e5&#034;\u5355\u4f53\u4e0d\u5148\u8fdb\u4e86&#034;&#xff0c;\u90a3\u591a\u534a\u53ea\u662f\u60f3\u8981\u7b80\u5386\u4e0a\u591a\u4e00\u884c Spring Cloud \u6280\u672f\u6808\u3002<\/p>\n<hr \/>\n<p>\u6269\u5c55\u9605\u8bfb \u5982\u679c\u4f60\u8fd8\u6ca1\u770b\u8fc7\u8fd9\u4e2a\u9879\u76ee\u7684\u6280\u672f\u9009\u578b\u94c1\u5f8b&#xff0c;\u53ef\u4ee5\u7ffb\u4e00\u4e0b\u300a\u6280\u672f\u9009\u578b\u7684\u4e09\u6761\u94c1\u5f8b\u300b\u3002<\/p>\n<hr \/>\n<p>\u4e0b\u671f\u9884\u544a&#xff1a;\u300a\u6587\u4ef6\u4e0a\u4f20\u9650\u5236 1024MB&#xff0c;\u8fd0\u7ef4\u627e\u4e0a\u95e8\u4e86\u300b<\/p>\n<p>spring.servlet.multipart.max-file-size \u914d\u6210 1024MB \u90a3\u5929\u8d77&#xff0c;\u670d\u52a1\u5668\u7684\u78c1\u76d8\u544a\u8b66\u5c31\u6ca1\u505c\u8fc7\u3002\u4e0a\u4f20\u9650\u5236\u4e0d\u662f\u8d8a\u5927\u8d8a\u597d&#xff0c;\u5230\u5e95\u8be5\u6309\u4ec0\u4e48\u5b9a\u3001\u600e\u4e48\u5b9a&#xff0c;\u6211\u4eec\u4e0b\u671f\u804a\u3002<\/p>\n<p>\u5982\u679c\u672c\u6587\u5bf9\u4f60\u6709\u5e2e\u52a9&#xff0c;\u6b22\u8fce&#xff1a;<\/p>\n<p>&#x1f44d; \u70b9\u8d5e &#xff5c; \u2b50 \u6536\u85cf &#xff5c; &#x1f464; \u5173\u6ce8 &#xff5c; &#x1f4ac; \u7559\u8a00\u3002<\/p>\n<p>\u4f60\u7684\u6bcf\u4e00\u6b21\u70b9\u8d5e\u9f13\u52b1\u90fd\u662f\u6211\u7ee7\u7eed\u66f4\u65b0\u7684\u52a8\u529b&#xff0c;\u6211\u4eec\u4e0b\u4e00\u7bc7\u89c1&#xff01;&#x1f680;<\/p>\n<p>\u6211\u662f\u8001\u70ae&#xff0c;18 \u5e74 Java \u8001\u5175&#xff0c;\u4ecd\u5728\u4e00\u7ebf\u3002\u5173\u6ce8\u300cJava\u8001\u70ae\u8e29\u5751\u5f55\u300d&#xff0c;\u4e0d\u9519\u8fc7\u6bcf\u4e00\u7bc7\u771f\u5b9e\u6848\u4f8b&#xff0c;\u5c11\u8e29\u5751\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content<\/p>\n","protected":false},"author":2,"featured_media":115664,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,292,1348,188],"topic":[],"class_list":["post-115667","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-292","tag-1348","tag-188"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Java \u8001\u9879\u76ee\u8be5\u4e0d\u8be5\u62c6\u5fae\u670d\u52a1\uff1f89\u5904\u4ea4\u53c9\u5f15\u7528\u30010\u5904FeignClient \u7684\u5b9e\u6d4b\u7b54\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/115667.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java \u8001\u9879\u76ee\u8be5\u4e0d\u8be5\u62c6\u5fae\u670d\u52a1\uff1f89\u5904\u4ea4\u53c9\u5f15\u7528\u30010\u5904FeignClient \u7684\u5b9e\u6d4b\u7b54\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/115667.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-12T15:49:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261012154904-6acd01703861e.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115667.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/115667.html\",\"name\":\"Java \u8001\u9879\u76ee\u8be5\u4e0d\u8be5\u62c6\u5fae\u670d\u52a1\uff1f89\u5904\u4ea4\u53c9\u5f15\u7528\u30010\u5904FeignClient \u7684\u5b9e\u6d4b\u7b54\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-12T15:49:06+00:00\",\"dateModified\":\"2026-10-12T15:49:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/115667.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/115667.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115667.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java \u8001\u9879\u76ee\u8be5\u4e0d\u8be5\u62c6\u5fae\u670d\u52a1\uff1f89\u5904\u4ea4\u53c9\u5f15\u7528\u30010\u5904FeignClient \u7684\u5b9e\u6d4b\u7b54\u6848\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java \u8001\u9879\u76ee\u8be5\u4e0d\u8be5\u62c6\u5fae\u670d\u52a1\uff1f89\u5904\u4ea4\u53c9\u5f15\u7528\u30010\u5904FeignClient \u7684\u5b9e\u6d4b\u7b54\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/115667.html","og_locale":"zh_CN","og_type":"article","og_title":"Java \u8001\u9879\u76ee\u8be5\u4e0d\u8be5\u62c6\u5fae\u670d\u52a1\uff1f89\u5904\u4ea4\u53c9\u5f15\u7528\u30010\u5904FeignClient \u7684\u5b9e\u6d4b\u7b54\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content","og_url":"https:\/\/www.wsisp.com\/helps\/115667.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-12T15:49:06+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261012154904-6acd01703861e.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/115667.html","url":"https:\/\/www.wsisp.com\/helps\/115667.html","name":"Java \u8001\u9879\u76ee\u8be5\u4e0d\u8be5\u62c6\u5fae\u670d\u52a1\uff1f89\u5904\u4ea4\u53c9\u5f15\u7528\u30010\u5904FeignClient \u7684\u5b9e\u6d4b\u7b54\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-12T15:49:06+00:00","dateModified":"2026-10-12T15:49:06+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/115667.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/115667.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/115667.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Java \u8001\u9879\u76ee\u8be5\u4e0d\u8be5\u62c6\u5fae\u670d\u52a1\uff1f89\u5904\u4ea4\u53c9\u5f15\u7528\u30010\u5904FeignClient \u7684\u5b9e\u6d4b\u7b54\u6848"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=115667"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115667\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/115664"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=115667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=115667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=115667"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=115667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}