{"id":89215,"date":"2026-08-02T16:48:53","date_gmt":"2026-08-02T08:48:53","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/89215.html"},"modified":"2026-08-02T16:48:53","modified_gmt":"2026-08-02T08:48:53","slug":"%e5%ae%9a%e6%97%b6%e4%bb%bb%e5%8a%a1%e9%87%8d%e5%a4%8d%e6%89%a7%e8%a1%8c%ef%bc%8c%e7%9c%9f%e7%9a%84%e6%98%af%e8%b0%83%e5%ba%a6%e5%99%a8%e7%9a%84%e9%97%ae%e9%a2%98%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/89215.html","title":{"rendered":"\u5b9a\u65f6\u4efb\u52a1\u91cd\u590d\u6267\u884c\uff0c\u771f\u7684\u662f\u8c03\u5ea6\u5668\u7684\u95ee\u9898\u5417\uff1f"},"content":{"rendered":"<p>\u505a\u5b9a\u65f6\u4efb\u52a1\u7cfb\u7edf\u65f6&#xff0c;\u6700\u5bb9\u6613\u6536\u5230\u7684\u4e00\u7c7b\u53cd\u9988\u5c31\u662f&#xff1a;\u201c\u8fd9\u4e2a\u4efb\u52a1\u600e\u4e48\u6267\u884c\u4e86\u4e24\u904d&#xff1f;\u201d<\/p>\n<p>\u7b2c\u4e00\u53cd\u5e94\u901a\u5e38\u662f\u8c03\u5ea6\u5668\u51fa\u4e86\u95ee\u9898&#xff1a;\u662f\u4e0d\u662f\u540c\u4e00\u4e2a\u4efb\u52a1\u88ab\u626b\u63cf\u4e86\u4e24\u6b21&#xff1f;\u662f\u4e0d\u662f\u591a\u5b9e\u4f8b\u90e8\u7f72\u540e\u62a2\u5230\u4e86\u540c\u4e00\u6761\u8bb0\u5f55&#xff1f;\u662f\u4e0d\u662f\u5206\u5e03\u5f0f\u9501\u5931\u6548\u4e86&#xff1f;<\/p>\n<p>\u8fd9\u4e9b\u60c5\u51b5\u786e\u5b9e\u53ef\u80fd\u53d1\u751f&#xff0c;\u4f46\u505a\u8fc7\u5b8c\u6574\u7684\u4efb\u52a1\u94fe\u8def\u540e\u6211\u53d1\u73b0&#xff0c;\u91cd\u590d\u6267\u884c\u5e76\u4e0d\u4e00\u5b9a\u53d1\u751f\u5728\u8c03\u5ea6\u9636\u6bb5\u3002\u6d88\u606f\u91cd\u590d\u6295\u9012\u3001\u6d88\u8d39\u8005\u91cd\u542f\u3001\u6267\u884c\u8d85\u65f6\u548c\u72b6\u6001\u56de\u5199\u5931\u8d25&#xff0c;\u90fd\u53ef\u80fd\u8ba9\u540c\u4e00\u4e2a\u4efb\u52a1\u518d\u6b21\u8fdb\u5165\u6267\u884c\u6d41\u7a0b\u3002<\/p>\n<p>\u5982\u679c\u53ea\u76ef\u7740\u8c03\u5ea6\u5668\u6392\u67e5&#xff0c;\u5f88\u53ef\u80fd\u4fee\u4e86\u5f88\u4e45&#xff0c;\u6700\u540e\u53d1\u73b0\u8c03\u5ea6\u5668\u6839\u672c\u6ca1\u6709\u91cd\u590d\u8c03\u5ea6\u3002<\/p>\n<h3>\u5148\u5206\u6e05&#xff1a;\u91cd\u590d\u8c03\u5ea6\u3001\u91cd\u590d\u6295\u9012\u548c\u91cd\u590d\u6267\u884c<\/h3>\n<p>\u4e00\u6761\u5b9a\u65f6\u4efb\u52a1\u771f\u6b63\u8dd1\u8d77\u6765&#xff0c;\u901a\u5e38\u4f1a\u7ecf\u8fc7\u4e0b\u9762\u51e0\u6b65&#xff1a;<\/p>\n<li>\n<p>\u8c03\u5ea6\u5668\u626b\u63cf\u5230\u671f\u4efb\u52a1&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u751f\u6210\u672c\u6b21\u6267\u884c\u5b9e\u4f8b&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5c06\u6267\u884c\u6d88\u606f\u6295\u9012\u5230\u6d88\u606f\u961f\u5217&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6d88\u8d39\u8005\u6536\u5230\u6d88\u606f\u5e76\u8c03\u7528\u4e1a\u52a1\u903b\u8f91&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6267\u884c\u5b8c\u6210\u540e\u786e\u8ba4\u6d88\u606f\u5e76\u66f4\u65b0\u72b6\u6001\u3002<\/p>\n<\/li>\n<p>\u7528\u6237\u770b\u5230\u7684\u662f\u201c\u4e1a\u52a1\u6267\u884c\u4e86\u4e24\u6b21\u201d&#xff0c;\u4f46\u91cd\u590d\u53ef\u80fd\u53d1\u751f\u5728\u4efb\u4f55\u4e00\u5c42\u3002<\/p>\n<p>\u4f8b\u5982&#xff0c;\u8c03\u5ea6\u5668\u53ea\u521b\u5efa\u4e86\u4e00\u6b21\u6267\u884c\u5b9e\u4f8b&#xff0c;\u751f\u4ea7\u8005\u53d1\u9001\u6d88\u606f\u540e\u5374\u6ca1\u6709\u53ca\u65f6\u6536\u5230 Broker \u7684\u786e\u8ba4\u3002\u5b83\u65e0\u6cd5\u5224\u65ad\u6d88\u606f\u5230\u5e95\u6709\u6ca1\u6709\u5199\u5165&#xff0c;\u4e8e\u662f\u91cd\u65b0\u53d1\u9001\u3002\u6700\u7ec8\u6d88\u606f\u961f\u5217\u4e2d\u51fa\u73b0\u4e24\u6761\u5185\u5bb9\u76f8\u540c\u7684\u6d88\u606f\u3002<\/p>\n<p>\u518d\u6bd4\u5982&#xff0c;\u6d88\u8d39\u8005\u5df2\u7ecf\u5b8c\u6210\u4e86\u6263\u6b3e\u3001\u53d1\u5238\u6216\u8005\u6570\u636e\u540c\u6b65&#xff0c;\u4f46\u8fd8\u6ca1\u6765\u5f97\u53ca\u786e\u8ba4\u6d88\u606f&#xff0c;\u670d\u52a1\u5c31\u91cd\u542f\u4e86\u3002Broker \u8ba4\u4e3a\u8fd9\u6761\u6d88\u606f\u6ca1\u6709\u6d88\u8d39\u6210\u529f&#xff0c;\u4fbf\u628a\u5b83\u91cd\u65b0\u6295\u9012\u7ed9\u5176\u4ed6\u6d88\u8d39\u8005\u3002\u8c03\u5ea6\u8bb0\u5f55\u53ea\u6709\u4e00\u6761&#xff0c;\u6d88\u606f\u4e5f\u4e0d\u662f\u7531\u8c03\u5ea6\u5668\u91cd\u590d\u521b\u5efa\u7684&#xff0c;\u4f46\u4e1a\u52a1\u4ecd\u7136\u4f1a\u518d\u6267\u884c\u4e00\u6b21\u3002<\/p>\n<p>\u6240\u4ee5\u6392\u67e5\u65f6\u9996\u5148\u8981\u95ee\u7684\u4e0d\u662f\u201c\u8c03\u5ea6\u5668\u4e3a\u4ec0\u4e48\u6267\u884c\u4e86\u4e24\u6b21\u201d&#xff0c;\u800c\u662f&#xff1a;<\/p>\n<p>\u540c\u4e00\u4e2a\u4efb\u52a1\u6267\u884c\u5b9e\u4f8b&#xff0c;\u662f\u5728\u54ea\u4e2a\u73af\u8282\u88ab\u518d\u6b21\u5c1d\u8bd5\u7684&#xff1f;<\/p>\n<h3>\u6d88\u606f\u7cfb\u7edf\u4e3a\u4ec0\u4e48\u5141\u8bb8\u91cd\u590d\u6295\u9012&#xff1f;<\/h3>\n<p>\u5f88\u591a\u4efb\u52a1\u7cfb\u7edf\u4f1a\u4f7f\u7528\u6d88\u606f\u961f\u5217\u89e3\u8026\u8c03\u5ea6\u4e0e\u6267\u884c\u3002\u8c03\u5ea6\u5668\u53ea\u8d1f\u8d23\u53d1\u73b0\u5230\u671f\u4efb\u52a1\u5e76\u53d1\u9001\u6d88\u606f&#xff0c;\u6267\u884c\u5668\u6839\u636e\u81ea\u8eab\u80fd\u529b\u5f02\u6b65\u6d88\u8d39\u3002\u8fd9\u6837\u6269\u5bb9\u548c\u6545\u969c\u9694\u79bb\u90fd\u66f4\u65b9\u4fbf\u3002<\/p>\n<p>\u4f46\u6d88\u606f\u961f\u5217\u901a\u5e38\u5f88\u96be\u5728\u590d\u6742\u5206\u5e03\u5f0f\u73af\u5883\u4e2d\u540c\u65f6\u4fdd\u8bc1\u201c\u7edd\u4e0d\u4e22\u5931\u201d\u548c\u201c\u7edd\u4e0d\u91cd\u590d\u201d\u3002\u5de5\u7a0b\u4e0a\u5e38\u89c1\u7684\u9009\u62e9\u662f at-least-once&#xff0c;\u4e5f\u5c31\u662f\u4e00\u6761\u6d88\u606f\u81f3\u5c11\u6210\u529f\u5904\u7406\u4e00\u6b21\u3002<\/p>\n<p>\u5b83\u7684\u4f18\u5148\u7ea7\u662f\u907f\u514d\u4efb\u52a1\u4e22\u5931\u3002\u53ea\u8981 Broker \u6ca1\u6709\u62ff\u5230\u660e\u786e\u7684\u6210\u529f\u786e\u8ba4&#xff0c;\u5c31\u53ef\u80fd\u91cd\u65b0\u6295\u9012\u3002\u56e0\u6b64&#xff0c;\u4e0b\u9762\u8fd9\u4e9b\u60c5\u51b5\u90fd\u4f1a\u4ea7\u751f\u91cd\u590d\u5c1d\u8bd5&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u751f\u4ea7\u8005\u53d1\u9001\u6210\u529f&#xff0c;\u4f46\u786e\u8ba4\u54cd\u5e94\u5728\u7f51\u7edc\u4e2d\u4e22\u5931&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6d88\u8d39\u8005\u5904\u7406\u6210\u529f&#xff0c;\u4f46 ACK \u53d1\u9001\u524d\u8fdb\u7a0b\u9000\u51fa&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6d88\u8d39\u65f6\u95f4\u8d85\u8fc7\u53ef\u89c1\u6027\u8d85\u65f6\u6216\u6d88\u8d39\u8d85\u65f6&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6d88\u8d39\u8005\u4e0e Broker \u77ed\u6682\u65ad\u8fde&#xff0c;\u786e\u8ba4\u72b6\u6001\u4e0d\u786e\u5b9a&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4eba\u5de5\u8865\u507f\u6216\u6545\u969c\u6062\u590d\u91cd\u65b0\u6295\u9012\u4e86\u5386\u53f2\u6d88\u606f\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u8fd9\u5e76\u4e0d\u662f\u6d88\u606f\u961f\u5217\u201c\u4e0d\u53ef\u9760\u201d&#xff0c;\u53cd\u800c\u662f\u5b83\u4e3a\u4e86\u4e0d\u4e22\u4efb\u52a1\u505a\u51fa\u7684\u53d6\u820d\u3002\u5982\u679c\u7cfb\u7edf\u8981\u6c42\u4efb\u52a1\u4e00\u5b9a\u6267\u884c&#xff0c;\u91cd\u590d\u6295\u9012\u5c31\u5e94\u8be5\u88ab\u5f53\u4f5c\u4e00\u79cd\u6b63\u5e38\u60c5\u51b5&#xff0c;\u800c\u4e0d\u662f\u6781\u5c0f\u6982\u7387\u7684\u5f02\u5e38\u3002<\/p>\n<h3>\u670d\u52a1\u91cd\u542f\u6700\u5bb9\u6613\u66b4\u9732\u95ee\u9898<\/h3>\n<p>\u5047\u8bbe\u6267\u884c\u6d41\u7a0b\u662f\u201c\u6536\u5230\u6d88\u606f \u2192 \u8c03\u7528\u7b2c\u4e09\u65b9\u63a5\u53e3 \u2192 \u66f4\u65b0\u72b6\u6001 \u2192 ACK\u201d\u3002\u5982\u679c\u670d\u52a1\u5728\u8c03\u7528\u63a5\u53e3\u540e\u3001\u66f4\u65b0\u72b6\u6001\u524d\u91cd\u542f&#xff0c;\u6570\u636e\u5e93\u4ecd\u663e\u793a\u672a\u5b8c\u6210&#xff0c;Broker \u4e5f\u6ca1\u6709\u6536\u5230 ACK&#xff0c;\u6062\u590d\u540e\u81ea\u7136\u4f1a\u518d\u6b21\u6267\u884c\u3002<\/p>\n<p>\u800c\u6570\u636e\u5e93\u4e8b\u52a1\u65e0\u6cd5\u56de\u6eda\u5df2\u7ecf\u53d1\u51fa\u7684\u77ed\u4fe1\u3001\u4f18\u60e0\u5238\u6216\u7b2c\u4e09\u65b9\u8bf7\u6c42\u3002\u56e0\u6b64&#xff0c;\u771f\u6b63\u9700\u8981\u4fdd\u62a4\u7684\u662f\u4e1a\u52a1\u526f\u4f5c\u7528&#xff0c;\u800c\u4e0d\u53ea\u662f\u672c\u5730\u6267\u884c\u72b6\u6001\u3002<\/p>\n<h3>\u6267\u884c\u8d85\u65f6&#xff0c;\u4e0d\u7b49\u4e8e\u6267\u884c\u5931\u8d25<\/h3>\n<p>\u8d85\u65f6\u4e5f\u662f\u91cd\u590d\u6267\u884c\u7684\u9ad8\u53d1\u539f\u56e0\u3002<\/p>\n<p>\u6267\u884c\u5668\u8c03\u7528\u4e0b\u6e38\u63a5\u53e3&#xff0c;\u7b49\u5f85\u4e09\u79d2\u4ecd\u672a\u6536\u5230\u54cd\u5e94&#xff0c;\u4e8e\u662f\u8ba4\u4e3a\u672c\u6b21\u5931\u8d25\u5e76\u53d1\u8d77\u91cd\u8bd5\u3002\u4f46\u4e0b\u6e38\u53ef\u80fd\u5df2\u7ecf\u5904\u7406\u6210\u529f&#xff0c;\u53ea\u662f\u54cd\u5e94\u8fd4\u56de\u5f97\u6162\u3002\u6b64\u65f6\u7b2c\u4e8c\u6b21\u8bf7\u6c42\u5230\u8fbe&#xff0c;\u4e0b\u6e38\u5982\u679c\u6ca1\u6709\u5e42\u7b49\u4fdd\u62a4&#xff0c;\u5c31\u4f1a\u518d\u6b21\u5904\u7406\u3002<\/p>\n<p>\u8fd9\u7c7b\u95ee\u9898\u4e0d\u662f\u7b80\u5355\u7684\u201c\u6210\u529f\u6216\u5931\u8d25\u201d&#xff0c;\u800c\u662f\u7ed3\u679c\u672a\u77e5&#xff1a;\u8bf7\u6c42\u53ef\u80fd\u6ca1\u5230\u4e0b\u6e38&#xff0c;\u4e5f\u53ef\u80fd\u5df2\u7ecf\u6210\u529f\u4f46\u54cd\u5e94\u4e22\u5931\u3002\u76f4\u63a5\u91cd\u8bd5\u63d0\u9ad8\u4e86\u53ef\u7528\u6027&#xff0c;\u4e5f\u6269\u5927\u4e86\u91cd\u590d\u6982\u7387&#xff0c;\u6240\u4ee5\u91cd\u8bd5\u5fc5\u987b\u548c\u5e42\u7b49\u4e00\u8d77\u8bbe\u8ba1\u3002<\/p>\n<h3>\u5206\u5e03\u5f0f\u9501\u80fd\u89e3\u51b3\u5417&#xff1f;<\/h3>\n<p>\u5206\u5e03\u5f0f\u9501\u6709\u7528&#xff0c;\u4f46\u5b83\u89e3\u51b3\u7684\u8303\u56f4\u6709\u9650\u3002<\/p>\n<p>\u4f8b\u5982\u591a\u4e2a\u8c03\u5ea6\u5668\u5b9e\u4f8b\u540c\u65f6\u626b\u63cf\u5230\u4e00\u6761\u4efb\u52a1&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u62a2\u5360\u9501\u3001\u6570\u636e\u5e93\u6761\u4ef6\u66f4\u65b0\u6216\u5206\u7247\u673a\u5236&#xff0c;\u51cf\u5c11\u540c\u4e00\u4efb\u52a1\u88ab\u540c\u65f6\u8c03\u5ea6\u7684\u6982\u7387\u3002\u591a\u4e2a\u6d88\u8d39\u8005\u5e76\u53d1\u5904\u7406\u540c\u4e00\u6267\u884c\u5b9e\u4f8b\u65f6&#xff0c;\u4e5f\u53ef\u4ee5\u7528\u9501\u9650\u5236\u5e76\u884c\u8fdb\u5165\u3002<\/p>\n<p>\u4f46\u7b2c\u4e00\u6b21\u6267\u884c\u91ca\u653e\u9501\u540e&#xff0c;\u91cd\u590d\u6d88\u606f\u4ecd\u80fd\u518d\u6b21\u83b7\u53d6\u9501&#xff1b;\u9501\u79df\u671f\u8fc7\u77ed\u8fd8\u53ef\u80fd\u5728\u4efb\u52a1\u672a\u7ed3\u675f\u65f6\u63d0\u524d\u5931\u6548\u3002\u6570\u636e\u5e93\u3001\u6d88\u606f\u961f\u5217\u548c\u7b2c\u4e09\u65b9\u63a5\u53e3\u4e4b\u95f4\u7684\u526f\u4f5c\u7528&#xff0c;\u4e5f\u65e0\u6cd5\u7531\u4e00\u628a Redis \u9501\u539f\u5b50\u7ba1\u7406\u3002<\/p>\n<p>\u6240\u4ee5\u9501\u66f4\u9002\u5408\u9632\u6b62\u540c\u4e00\u65f6\u523b\u5e76\u53d1\u6267\u884c&#xff0c;\u5e42\u7b49\u5219\u8d1f\u8d23\u4fdd\u8bc1\u540c\u4e00\u4e1a\u52a1\u91cd\u590d\u8fdb\u5165\u65f6\u7ed3\u679c\u4e0d\u53d8\u3002\u4e24\u8005\u4e0d\u662f\u4e00\u56de\u4e8b\u3002<\/p>\n<h3>\u6211\u66f4\u503e\u5411\u4e8e\u7528\u201c\u6267\u884c\u5b9e\u4f8b\u201d\u505a\u5e42\u7b49<\/h3>\n<p>\u5468\u671f\u4efb\u52a1\u4e0d\u80fd\u53ea\u4f7f\u7528 timerId \u4f5c\u4e3a\u5e42\u7b49\u952e&#xff0c;\u56e0\u4e3a\u540c\u4e00\u4e2a\u5b9a\u65f6\u4efb\u52a1\u672c\u6765\u5c31\u8981\u6267\u884c\u5f88\u591a\u6b21\u3002\u66f4\u5408\u7406\u7684\u505a\u6cd5\u662f\u4e3a\u6bcf\u6b21\u8ba1\u5212\u6267\u884c\u751f\u6210\u7a33\u5b9a\u7684\u6267\u884c\u5b9e\u4f8b\u6807\u8bc6&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p>runKey &#061; timerId &#043; scheduledTime<\/p>\n<p>\u4e5f\u53ef\u4ee5\u76f4\u63a5\u751f\u6210 runTimerId&#xff0c;\u4f46\u91cd\u8bd5\u548c\u6062\u590d\u65f6\u5fc5\u987b\u590d\u7528\u540c\u4e00\u4e2a ID&#xff0c;\u4e0d\u80fd\u6bcf\u6295\u9012\u4e00\u6b21\u6d88\u606f\u5c31\u751f\u6210\u4e00\u4e2a\u65b0 ID\u3002<\/p>\n<p>\u6267\u884c\u5668\u6536\u5230\u6d88\u606f\u540e&#xff0c;\u5148\u5c1d\u8bd5\u5199\u5165\u6267\u884c\u8bb0\u5f55&#xff0c;\u5e76\u5728\u6570\u636e\u5e93\u4e2d\u4e3a run_key \u5efa\u7acb\u552f\u4e00\u7d22\u5f15&#xff1a;<\/p>\n<p>CREATE UNIQUE INDEX uk_run_key ON task_execution(run_key);<\/p>\n<p>Java \u4ee3\u7801\u53ef\u4ee5\u7b80\u5316\u4e3a&#xff1a;<\/p>\n<p>public void consume(TaskMessage message) {<br \/>\n    boolean created &#061; executionRepository.tryCreate(<br \/>\n            message.getRunKey(), ExecutionStatus.RUNNING);<\/p>\n<p>    if (!created) {<br \/>\n        return; \/\/ \u76f8\u540c\u6267\u884c\u5b9e\u4f8b\u5df2\u7ecf\u8fdb\u5165\u8fc7\u7cfb\u7edf<br \/>\n    }<\/p>\n<p>    try {<br \/>\n        taskHandler.execute(message);<br \/>\n        executionRepository.markSuccess(message.getRunKey());<br \/>\n    } catch (Exception e) {<br \/>\n        executionRepository.markFailed(message.getRunKey(), e.getMessage());<br \/>\n        throw e;<br \/>\n    }<br \/>\n}<\/p>\n<p>\u8fd9\u91cc\u4e0d\u80fd\u53ea\u5199\u201c\u5148\u67e5\u8be2\u662f\u5426\u5b58\u5728&#xff0c;\u518d\u63d2\u5165\u201d\u3002\u4e24\u4e2a\u6d88\u8d39\u8005\u53ef\u80fd\u540c\u65f6\u67e5\u8be2\u5230\u4e0d\u5b58\u5728&#xff0c;\u7136\u540e\u90fd\u7ee7\u7eed\u6267\u884c\u3002\u6700\u7ec8\u515c\u5e95\u5fc5\u987b\u662f\u6570\u636e\u5e93\u552f\u4e00\u7ea6\u675f&#xff0c;\u63d2\u5165\u51b2\u7a81\u5219\u8bf4\u660e\u53e6\u4e00\u4e2a\u5b9e\u4f8b\u5df2\u7ecf\u62a2\u5148\u5904\u7406\u3002<\/p>\n<p>\u5982\u679c\u4e1a\u52a1\u4f1a\u8c03\u7528\u7b2c\u4e09\u65b9\u63a5\u53e3&#xff0c;\u6700\u597d\u7ee7\u7eed\u628a runKey \u4f5c\u4e3a\u5e42\u7b49\u53f7\u4f20\u7ed9\u4e0b\u6e38\u3002\u4e0b\u6e38\u4e0d\u652f\u6301\u5e42\u7b49\u65f6&#xff0c;\u5219\u8981\u8bbe\u8ba1\u7ed3\u679c\u67e5\u8be2\u6216\u8865\u507f\u6d41\u7a0b\u3002<\/p>\n<h3>\u53d1\u73b0\u8bb0\u5f55\u5b58\u5728&#xff0c;\u4e5f\u4e0d\u80fd\u4e00\u5f8b return<\/h3>\n<p>SUCCESS \u53ef\u4ee5\u76f4\u63a5\u786e\u8ba4\u6d88\u606f&#xff1b;RUNNING \u65e2\u53ef\u80fd\u4ee3\u8868\u53e6\u4e00\u5b9e\u4f8b\u6b63\u5728\u6267\u884c&#xff0c;\u4e5f\u53ef\u80fd\u662f\u5b95\u673a\u7559\u4e0b\u7684\u50f5\u5c38\u72b6\u6001&#xff1b;FAILED \u5219\u8981\u6839\u636e\u9519\u8bef\u7c7b\u578b\u548c\u91cd\u8bd5\u6b21\u6570\u5904\u7406\u3002\u56e0\u6b64\u7cfb\u7edf\u901a\u5e38\u8fd8\u9700\u8981\u6267\u884c\u79df\u7ea6\u3001\u6700\u5927\u91cd\u8bd5\u6b21\u6570\u548c\u72b6\u6001\u673a\u3002\u6062\u590d\u4efb\u52a1\u91cd\u65b0\u63a5\u7ba1\u65f6&#xff0c;\u4e5f\u5fc5\u987b\u590d\u7528\u539f\u6765\u7684 runKey\u3002<\/p>\n<h3>\u6392\u67e5\u91cd\u590d\u6267\u884c&#xff0c;\u6211\u4f1a\u770b\u8fd9\u51e0\u4e2a ID<\/h3>\n<p>\u5982\u679c\u65e5\u5fd7\u91cc\u53ea\u6709\u201c\u4efb\u52a1\u5f00\u59cb\u6267\u884c\u201d&#xff0c;\u5f88\u96be\u5224\u65ad\u91cd\u590d\u6765\u81ea\u54ea\u91cc\u3002\u81f3\u5c11\u5e94\u8bb0\u5f55 timerId\u3001runKey\/runTimerId\u3001messageId\u3001traceId \u548c retryCount\u3002<\/p>\n<p>\u5982\u679c runKey \u4e0d\u540c&#xff0c;\u53ef\u80fd\u662f\u8c03\u5ea6\u5668\u91cd\u590d\u521b\u5efa\u4e86\u6267\u884c\u5b9e\u4f8b&#xff1b;\u5982\u679c runKey \u76f8\u540c\u800c messageId \u4e0d\u540c&#xff0c;\u53ef\u80fd\u662f\u751f\u4ea7\u7aef\u91cd\u590d\u53d1\u9001\u6216\u8865\u507f\u6295\u9012&#xff1b;\u5982\u679c\u4e24\u8005\u90fd\u76f8\u540c\u4f46\u6d88\u8d39\u65e5\u5fd7\u51fa\u73b0\u591a\u6b21&#xff0c;\u5219\u66f4\u53ef\u80fd\u662f\u6d88\u606f\u91cd\u65b0\u6295\u9012\u6216 ACK \u5931\u8d25\u3002<\/p>\n<p>\u6709\u4e86\u8fd9\u4e9b\u4fe1\u606f&#xff0c;\u624d\u80fd\u628a\u201c\u91cd\u590d\u6267\u884c\u201d\u4ece\u4e00\u4e2a\u6a21\u7cca\u73b0\u8c61\u5b9a\u4f4d\u5230\u5177\u4f53\u73af\u8282\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u505a\u5b9a\u65f6\u4efb\u52a1\u7cfb\u7edf\u65f6&#xff0c;\u6700\u5bb9\u6613\u6536\u5230\u7684\u4e00\u7c7b\u53cd\u9988\u5c31\u662f&#xff1a;\u201c\u8fd9\u4e2a\u4efb\u52a1\u600e\u4e48\u6267\u884c\u4e86\u4e24\u904d&#xff1f;\u201d\u7b2c\u4e00\u53cd\u5e94\u901a\u5e38\u662f\u8c03\u5ea6\u5668\u51fa\u4e86\u95ee\u9898&#xff1a;\u662f\u4e0d\u662f\u540c\u4e00\u4e2a\u4efb\u52a1\u88ab\u626b\u63cf\u4e86\u4e24\u6b21&#xff1f;\u662f\u4e0d\u662f\u591a\u5b9e\u4f8b\u90e8\u7f72\u540e\u62a2\u5230\u4e86\u540c\u4e00\u6761\u8bb0\u5f55&#xff1f;\u662f\u4e0d\u662f\u5206\u5e03\u5f0f\u9501\u5931\u6548\u4e86&#xff1f;\u8fd9\u4e9b\u60c5\u51b5\u786e\u5b9e\u53ef\u80fd\u53d1\u751f&#xff0c;\u4f46\u505a\u8fc7\u5b8c\u6574\u7684\u4efb\u52a1\u94fe\u8def\u540e\u6211\u53d1\u73b0&#xff0c;\u91cd\u590d\u6267\u884c\u5e76\u4e0d\u4e00\u5b9a\u53d1\u751f\u5728\u8c03\u5ea6\u9636\u6bb5\u3002\u6d88\u606f\u91cd\u590d\u6295\u9012\u3001\u6d88\u8d39\u8005\u91cd\u542f\u3001\u6267\u884c\u8d85\u65f6\u548c\u72b6\u6001\u56de\u5199\u5931\u8d25&#xff0c;\u90fd\u53ef\u80fd\u8ba9\u540c\u4e00\u4e2a\u4efb<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9137,99,3303,101,98,963],"topic":[],"class_list":["post-89215","post","type-post","status-publish","format-standard","hentry","category-server","tag-atomgit","tag-java","tag-java-rabbitmq","tag-spring","tag-spring-boot","tag-spring-cloud"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5b9a\u65f6\u4efb\u52a1\u91cd\u590d\u6267\u884c\uff0c\u771f\u7684\u662f\u8c03\u5ea6\u5668\u7684\u95ee\u9898\u5417\uff1f - \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\/89215.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5b9a\u65f6\u4efb\u52a1\u91cd\u590d\u6267\u884c\uff0c\u771f\u7684\u662f\u8c03\u5ea6\u5668\u7684\u95ee\u9898\u5417\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u505a\u5b9a\u65f6\u4efb\u52a1\u7cfb\u7edf\u65f6&#xff0c;\u6700\u5bb9\u6613\u6536\u5230\u7684\u4e00\u7c7b\u53cd\u9988\u5c31\u662f&#xff1a;\u201c\u8fd9\u4e2a\u4efb\u52a1\u600e\u4e48\u6267\u884c\u4e86\u4e24\u904d&#xff1f;\u201d\u7b2c\u4e00\u53cd\u5e94\u901a\u5e38\u662f\u8c03\u5ea6\u5668\u51fa\u4e86\u95ee\u9898&#xff1a;\u662f\u4e0d\u662f\u540c\u4e00\u4e2a\u4efb\u52a1\u88ab\u626b\u63cf\u4e86\u4e24\u6b21&#xff1f;\u662f\u4e0d\u662f\u591a\u5b9e\u4f8b\u90e8\u7f72\u540e\u62a2\u5230\u4e86\u540c\u4e00\u6761\u8bb0\u5f55&#xff1f;\u662f\u4e0d\u662f\u5206\u5e03\u5f0f\u9501\u5931\u6548\u4e86&#xff1f;\u8fd9\u4e9b\u60c5\u51b5\u786e\u5b9e\u53ef\u80fd\u53d1\u751f&#xff0c;\u4f46\u505a\u8fc7\u5b8c\u6574\u7684\u4efb\u52a1\u94fe\u8def\u540e\u6211\u53d1\u73b0&#xff0c;\u91cd\u590d\u6267\u884c\u5e76\u4e0d\u4e00\u5b9a\u53d1\u751f\u5728\u8c03\u5ea6\u9636\u6bb5\u3002\u6d88\u606f\u91cd\u590d\u6295\u9012\u3001\u6d88\u8d39\u8005\u91cd\u542f\u3001\u6267\u884c\u8d85\u65f6\u548c\u72b6\u6001\u56de\u5199\u5931\u8d25&#xff0c;\u90fd\u53ef\u80fd\u8ba9\u540c\u4e00\u4e2a\u4efb\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/89215.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-02T08:48:53+00:00\" \/>\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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89215.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/89215.html\",\"name\":\"\u5b9a\u65f6\u4efb\u52a1\u91cd\u590d\u6267\u884c\uff0c\u771f\u7684\u662f\u8c03\u5ea6\u5668\u7684\u95ee\u9898\u5417\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-02T08:48:53+00:00\",\"dateModified\":\"2026-08-02T08:48:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/89215.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/89215.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89215.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5b9a\u65f6\u4efb\u52a1\u91cd\u590d\u6267\u884c\uff0c\u771f\u7684\u662f\u8c03\u5ea6\u5668\u7684\u95ee\u9898\u5417\uff1f\"}]},{\"@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":"\u5b9a\u65f6\u4efb\u52a1\u91cd\u590d\u6267\u884c\uff0c\u771f\u7684\u662f\u8c03\u5ea6\u5668\u7684\u95ee\u9898\u5417\uff1f - \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\/89215.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5b9a\u65f6\u4efb\u52a1\u91cd\u590d\u6267\u884c\uff0c\u771f\u7684\u662f\u8c03\u5ea6\u5668\u7684\u95ee\u9898\u5417\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u505a\u5b9a\u65f6\u4efb\u52a1\u7cfb\u7edf\u65f6&#xff0c;\u6700\u5bb9\u6613\u6536\u5230\u7684\u4e00\u7c7b\u53cd\u9988\u5c31\u662f&#xff1a;\u201c\u8fd9\u4e2a\u4efb\u52a1\u600e\u4e48\u6267\u884c\u4e86\u4e24\u904d&#xff1f;\u201d\u7b2c\u4e00\u53cd\u5e94\u901a\u5e38\u662f\u8c03\u5ea6\u5668\u51fa\u4e86\u95ee\u9898&#xff1a;\u662f\u4e0d\u662f\u540c\u4e00\u4e2a\u4efb\u52a1\u88ab\u626b\u63cf\u4e86\u4e24\u6b21&#xff1f;\u662f\u4e0d\u662f\u591a\u5b9e\u4f8b\u90e8\u7f72\u540e\u62a2\u5230\u4e86\u540c\u4e00\u6761\u8bb0\u5f55&#xff1f;\u662f\u4e0d\u662f\u5206\u5e03\u5f0f\u9501\u5931\u6548\u4e86&#xff1f;\u8fd9\u4e9b\u60c5\u51b5\u786e\u5b9e\u53ef\u80fd\u53d1\u751f&#xff0c;\u4f46\u505a\u8fc7\u5b8c\u6574\u7684\u4efb\u52a1\u94fe\u8def\u540e\u6211\u53d1\u73b0&#xff0c;\u91cd\u590d\u6267\u884c\u5e76\u4e0d\u4e00\u5b9a\u53d1\u751f\u5728\u8c03\u5ea6\u9636\u6bb5\u3002\u6d88\u606f\u91cd\u590d\u6295\u9012\u3001\u6d88\u8d39\u8005\u91cd\u542f\u3001\u6267\u884c\u8d85\u65f6\u548c\u72b6\u6001\u56de\u5199\u5931\u8d25&#xff0c;\u90fd\u53ef\u80fd\u8ba9\u540c\u4e00\u4e2a\u4efb","og_url":"https:\/\/www.wsisp.com\/helps\/89215.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-02T08:48:53+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/89215.html","url":"https:\/\/www.wsisp.com\/helps\/89215.html","name":"\u5b9a\u65f6\u4efb\u52a1\u91cd\u590d\u6267\u884c\uff0c\u771f\u7684\u662f\u8c03\u5ea6\u5668\u7684\u95ee\u9898\u5417\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-02T08:48:53+00:00","dateModified":"2026-08-02T08:48:53+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/89215.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/89215.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/89215.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5b9a\u65f6\u4efb\u52a1\u91cd\u590d\u6267\u884c\uff0c\u771f\u7684\u662f\u8c03\u5ea6\u5668\u7684\u95ee\u9898\u5417\uff1f"}]},{"@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\/89215","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=89215"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89215\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=89215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=89215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=89215"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=89215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}