{"id":86888,"date":"2026-07-29T12:09:36","date_gmt":"2026-07-29T04:09:36","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/86888.html"},"modified":"2026-07-29T12:09:36","modified_gmt":"2026-07-29T04:09:36","slug":"%e4%b8%80%e6%96%87%e8%ae%b2%e9%80%8f%ef%bc%9aspring-boot-%e6%95%b4%e5%90%88-rabbitmq%e3%80%81%e5%85%a5%e9%97%a8demo%e6%a1%88%e4%be%8b%e6%89%8b%e6%8a%8a%e6%89%8b%e6%95%99%e5%ad%a6%e3%80%81mq-%e7%9a%84","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/86888.html","title":{"rendered":"\u4e00\u6587\u8bb2\u900f\uff1aSpring Boot \u6574\u5408 RabbitMQ\u3001\u5165\u95e8demo\u6848\u4f8b\u624b\u628a\u624b\u6559\u5b66\u3001MQ \u7684\u56db\u5927\u5b9e\u6218\u573a\u666f"},"content":{"rendered":"<p>\u524d\u8a00<\/p>\n<p>\u5f88\u591a\u521d\u5b66\u8005\u5728\u5b66\u4e60\u6d88\u606f\u961f\u5217&#xff08;MQ&#xff09;\u65f6&#xff0c;\u90fd\u4f1a\u6709\u8fd9\u6837\u7684\u56f0\u60d1&#xff1a;\u7f51\u4e0a\u7684\u8d44\u6599\u8981\u4e48\u901a\u7bc7\u662f\u201c\u4ea4\u6362\u673a\u201d\u201c\u7ed1\u5b9a\u201d\u7b49\u6666\u6da9\u539f\u7406&#xff0c;\u8981\u4e48\u5c31\u662f\u5728\u4e00\u4e2a\u9879\u76ee\u91cc\u81ea\u5df1\u53d1\u81ea\u5df1\u6536&#xff0c;\u8ba9\u4eba\u611f\u89c9\u201c\u8131\u4e86\u88e4\u5b50\u653e\u5c41\u201d\u3002\u8fd9\u6837\u7684\u5185\u5bb9\u5f88\u96be\u8ba9\u4eba\u7406\u89e3 MQ \u5230\u5e95\u80fd\u89e3\u51b3\u4ec0\u4e48\u5b9e\u9645\u95ee\u9898\u3002<\/p>\n<p>\u672c\u6587\u7684\u76ee\u6807\u5c31\u662f\u5f7b\u5e95\u89e3\u51b3\u8fd9\u4e2a\u75db\u70b9\u3002\u6211\u4eec\u5c06\u5206\u4e24\u90e8\u5206\u5c55\u5f00&#xff1a;<\/p>\n<ul>\n<li>\n<p>Spring Boot \u6574\u5408 RabbitMQ \u5b9e\u6218&#xff1a;\u63d0\u4f9b\u4e00\u4e2a\u201c\u5230\u624b\u5373\u7528\u201d\u7684\u6700\u7b80\u4ee3\u7801\u6a21\u677f\u3002<\/p>\n<\/li>\n<li>\n<p>MQ \u7684\u56db\u5927\u6838\u5fc3\u4f7f\u7528\u573a\u666f&#xff1a;\u6df1\u5ea6\u5256\u6790\u5728\u4ec0\u4e48\u60c5\u51b5\u4e0b&#xff0c;\u4f60\u4f1a\u201c\u4e0d\u5f97\u4e0d\u201d\u642c\u51fa MQ\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u9002\u7528\u4eba\u7fa4&#xff1a;Java \u540e\u7aef\u5f00\u53d1\u8005&#xff0c;\u6709\u4e00\u5b9a Spring Boot \u57fa\u7840&#xff0c;\u5e0c\u671b\u5feb\u901f\u4e0a\u624b\u5e76\u7406\u89e3 MQ \u7684\u5e94\u7528\u4ef7\u503c\u3002<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"595\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040930-6a697cfa5e8b0.png\" width=\"595\" \/><\/p>\n<p>\u6458\u8981<\/p>\n<p>\u672c\u6587\u4e3aJava\u540e\u7aef\u5f00\u53d1\u8005\u63d0\u4f9bRabbitMQ\u5feb\u901f\u5165\u95e8\u6307\u5357\u3002\u901a\u8fc7Docker\u90e8\u7f72\u548cSpring Boot\u6781\u7b80\u914d\u7f6e&#xff0c;\u7ed9\u51fa\u201c\u5230\u624b\u5373\u7528\u201d\u4ee3\u7801\u6a21\u677f&#xff0c;\u52a9\u60a8\u534a\u5c0f\u65f6\u5185\u8dd1\u901a\u6d88\u606f\u6536\u53d1\u3002\u968f\u540e\u6df1\u5ea6\u5256\u6790MQ\u56db\u5927\u6838\u5fc3\u573a\u666f&#xff1a;\u79d2\u6740\u65f6\u524a\u5cf0\u586b\u8c37&#xff1b;\u652f\u4ed8\u94fe\u8def\u5f02\u6b65\u89e3\u8026&#xff1b;\u8c03\u7528\u7b2c\u4e09\u65b9\u63a5\u53e3\u65f6\u9694\u79bb\u4e0e\u91cd\u8bd5&#xff1b;\u5fae\u670d\u52a1\u4e2d\u4fdd\u969c\u6700\u7ec8\u4e00\u81f4\u6027\u3002\u6587\u7ae0\u5f3a\u8c03&#xff0c;MQ\u7684\u771f\u6b63\u4ef7\u503c\u5728\u4e8e\u89e3\u51b3\u8de8\u670d\u52a1\u3001\u8de8\u65f6\u95f4\u7684\u590d\u6742\u901a\u4fe1\u96be\u9898\u3002<\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E4%B8%80%E3%80%81Spring%20Boot%20%E6%95%B4%E5%90%88%20RabbitMQ%EF%BC%88%E6%9C%80%E5%B0%91%E5%BF%85%E8%A6%81%E6%AD%A5%E9%AA%A4%EF%BC%89-toc\" style=\"margin-left:0px\">\u4e00\u3001Spring Boot \u6574\u5408 RabbitMQ&#xff08;\u6700\u5c11\u5fc5\u8981\u6b65\u9aa4&#xff09;<\/p>\n<p id=\"1.%20%E5%90%AF%E5%8A%A8%20RabbitMQ%E6%9C%8D%E5%8A%A1-toc\" style=\"margin-left:40px\">1. \u542f\u52a8 RabbitMQ\u670d\u52a1<\/p>\n<p id=\"%E2%91%A0%E6%8B%89%E5%8F%96RabbitMQ%E7%9A%84docker%E9%95%9C%E5%83%8F-toc\" style=\"margin-left:80px\">\u2460\u62c9\u53d6RabbitMQ\u7684docker\u955c\u50cf<\/p>\n<p id=\"%E2%91%A1%E5%90%AF%E5%8A%A8RabbitMQ%E7%9A%84docker%E5%AE%B9%E5%99%A8-toc\" style=\"margin-left:80px\">\u2461\u542f\u52a8RabbitMQ\u7684docker\u5bb9\u5668<\/p>\n<p id=\"2.%20Spring%20Boot%20%E9%A1%B9%E7%9B%AE%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:40px\">2. Spring Boot \u9879\u76ee\u914d\u7f6e<\/p>\n<p id=\"%E2%91%A0%20%E5%BC%95%E5%85%A5%E6%A0%B8%E5%BF%83%E4%BE%9D%E8%B5%96-toc\" style=\"margin-left:80px\">\u2460 \u5f15\u5165\u6838\u5fc3\u4f9d\u8d56<\/p>\n<p id=\"%E2%91%A1%20%E5%A1%AB%E5%86%99%E8%BF%9E%E6%8E%A5%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:80px\">\u2461 \u586b\u5199\u8fde\u63a5\u914d\u7f6e<\/p>\n<p id=\"3.%20%E7%BC%96%E5%86%99%E6%94%B6%E5%8F%91%E6%A0%B8%E5%BF%83%E4%BB%A3%E7%A0%81-toc\" style=\"margin-left:40px\">3. \u7f16\u5199\u6536\u53d1\u6838\u5fc3\u4ee3\u7801<\/p>\n<p id=\"%E2%91%A0%20%E5%8F%91%E9%80%81%E6%B6%88%E6%81%AF%EF%BC%88%E7%94%9F%E4%BA%A7%E8%80%85%EF%BC%89-toc\" style=\"margin-left:80px\">\u2460 \u53d1\u9001\u6d88\u606f&#xff08;\u751f\u4ea7\u8005&#xff09;<\/p>\n<p id=\"%E2%91%A1%20%E6%8E%A5%E6%94%B6%E6%B6%88%E6%81%AF%EF%BC%88%E6%B6%88%E8%B4%B9%E8%80%85%EF%BC%89-toc\" style=\"margin-left:80px\">\u2461 \u63a5\u6536\u6d88\u606f&#xff08;\u6d88\u8d39\u8005&#xff09;<\/p>\n<p id=\"%E2%91%A2%20%E4%BF%AE%E6%94%B9%E9%97%AE%E9%A2%98%EF%BC%9Aguest%E7%94%A8%E6%88%B7%E5%8F%AA%E6%94%AF%E6%8C%81%E6%9C%AC%E6%9C%BA%E8%BF%9E%E6%8E%A5%EF%BC%8C%E6%97%A0%E6%B3%95%E9%80%9A%E8%BF%87%E5%A4%96%E9%83%A8%E8%BF%9E%E6%8E%A5-toc\" style=\"margin-left:80px\">\u2462 \u4fee\u6539\u95ee\u9898&#xff1a;guest\u7528\u6237\u53ea\u652f\u6301\u672c\u673a\u8fde\u63a5&#xff0c;\u65e0\u6cd5\u901a\u8fc7\u5916\u90e8\u8fde\u63a5<\/p>\n<p id=\"%E2%91%A3%E6%9F%A5%E7%9C%8B%E4%BF%AE%E6%94%B9%E5%90%8E%E7%9A%84%E6%95%88%E6%9E%9C-toc\" style=\"margin-left:80px\">\u2463 \u67e5\u770b\u4fee\u6539\u540e\u7684\u6548\u679c<\/p>\n<p id=\"4.%20%E6%B5%8B%E8%AF%95%E5%8F%91%E9%80%81%E3%80%81%E6%8E%A5%E6%94%B6%E6%B6%88%E6%81%AF%E7%9A%84%E5%8A%9F%E8%83%BD-toc\" style=\"margin-left:40px\">4. \u6d4b\u8bd5\u53d1\u9001\u3001\u63a5\u6536\u6d88\u606f\u7684\u529f\u80fd<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E4%BB%80%E4%B9%88%E6%97%B6%E5%80%99%E5%BA%94%E8%AF%A5%E4%BD%BF%E7%94%A8%E6%B6%88%E6%81%AF%E9%98%9F%E5%88%97%EF%BC%9F%EF%BC%88%E5%9B%9B%E5%A4%A7%E6%A0%B8%E5%BF%83%E5%9C%BA%E6%99%AF%EF%BC%89-toc\" style=\"margin-left:0px\">\u4e8c\u3001\u4ec0\u4e48\u65f6\u5019\u5e94\u8be5\u4f7f\u7528\u6d88\u606f\u961f\u5217&#xff1f;&#xff08;\u56db\u5927\u6838\u5fc3\u573a\u666f&#xff09;<\/p>\n<p id=\"%E5%9C%BA%E6%99%AF%E4%B8%80%EF%BC%9A%E7%B3%BB%E7%BB%9F%E2%80%9C%E5%8D%A1%E6%AD%BB%E2%80%9D%E4%BA%86%EF%BC%8C%E7%94%A8%E6%88%B7%E6%80%A5%E5%BE%97%E9%AA%82%E4%BA%BA%EF%BC%88%E5%89%8A%E5%B3%B0%E5%A1%AB%E8%B0%B7%EF%BC%89-toc\" style=\"margin-left:40px\">\u573a\u666f\u4e00&#xff1a;\u7cfb\u7edf\u201c\u5361\u6b7b\u201d\u4e86&#xff0c;\u7528\u6237\u6025\u5f97\u9a82\u4eba&#xff08;\u524a\u5cf0\u586b\u8c37&#xff09;<\/p>\n<p id=\"%E5%9C%BA%E6%99%AF%E4%BA%8C%EF%BC%9A%E4%B8%80%E4%B8%AA%E5%8A%A8%E4%BD%9C%EF%BC%8C%E8%A6%81%E9%80%9A%E7%9F%A5%E6%97%A0%E6%95%B0%E4%B8%AA%E4%B8%8B%E6%B8%B8%EF%BC%88%E5%BC%82%E6%AD%A5%E8%A7%A3%E8%80%A6%EF%BC%89-toc\" style=\"margin-left:40px\">\u573a\u666f\u4e8c&#xff1a;\u4e00\u4e2a\u52a8\u4f5c&#xff0c;\u8981\u901a\u77e5\u65e0\u6570\u4e2a\u4e0b\u6e38&#xff08;\u5f02\u6b65\u89e3\u8026&#xff09;<\/p>\n<p id=\"%E5%9C%BA%E6%99%AF%E4%B8%89%EF%BC%9A%E8%B0%83%E7%94%A8%E7%AC%AC%E4%B8%89%E6%96%B9%E6%8E%A5%E5%8F%A3%EF%BC%8C%E5%AF%B9%E6%96%B9%E6%80%BB%E6%98%AF%E4%B8%8D%E7%BB%99%E5%8A%9B%EF%BC%88%E6%9C%8D%E5%8A%A1%E9%9A%94%E7%A6%BB%E4%B8%8E%E9%87%8D%E8%AF%95%EF%BC%89-toc\" style=\"margin-left:40px\">\u573a\u666f\u4e09&#xff1a;\u8c03\u7528\u7b2c\u4e09\u65b9\u63a5\u53e3&#xff0c;\u5bf9\u65b9\u603b\u662f\u4e0d\u7ed9\u529b&#xff08;\u670d\u52a1\u9694\u79bb\u4e0e\u91cd\u8bd5&#xff09;<\/p>\n<p id=\"%E5%9C%BA%E6%99%AF%E5%9B%9B%EF%BC%9A%E5%88%86%E5%B8%83%E5%BC%8F%E7%B3%BB%E7%BB%9F%E6%95%B0%E6%8D%AE%E4%B8%8D%E4%B8%80%E8%87%B4%EF%BC%88%E6%9C%80%E7%BB%88%E4%B8%80%E8%87%B4%E6%80%A7%EF%BC%89-toc\" style=\"margin-left:40px\">\u573a\u666f\u56db&#xff1a;\u5206\u5e03\u5f0f\u7cfb\u7edf\u6570\u636e\u4e0d\u4e00\u81f4&#xff08;\u6700\u7ec8\u4e00\u81f4\u6027&#xff09;<\/p>\n<p id=\"%E7%BB%93%E8%AF%AD-toc\" style=\"margin-left:0px\">\u7ed3\u8bed<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"%E4%B8%80%E3%80%81Spring%20Boot%20%E6%95%B4%E5%90%88%20RabbitMQ%EF%BC%88%E6%9C%80%E5%B0%91%E5%BF%85%E8%A6%81%E6%AD%A5%E9%AA%A4%EF%BC%89\">\u4e00\u3001Spring Boot \u6574\u5408 RabbitMQ&#xff08;\u6700\u5c11\u5fc5\u8981\u6b65\u9aa4&#xff09;<\/h2>\n<p>\u6211\u4eec\u8df3\u8fc7\u7e41\u6742\u7684\u7406\u8bba&#xff0c;\u76f4\u63a5\u4e0a\u624b\u3002\u76ee\u6807\u662f&#xff1a;\u5728\u534a\u4e2a\u5c0f\u65f6\u5185&#xff0c;\u7528\u6700\u5c11\u7684\u4ee3\u7801\u8dd1\u901a\u6d88\u606f\u7684\u53d1\u9001\u4e0e\u63a5\u6536\u3002<\/p>\n<h3 id=\"1.%20%E5%90%AF%E5%8A%A8%20RabbitMQ%E6%9C%8D%E5%8A%A1\">1. \u542f\u52a8 RabbitMQ\u670d\u52a1<\/h3>\n<h4 id=\"%E2%91%A0%E6%8B%89%E5%8F%96RabbitMQ%E7%9A%84docker%E9%95%9C%E5%83%8F\">\u2460\u62c9\u53d6RabbitMQ\u7684docker\u955c\u50cf<\/h4>\n<p>docker pull rabbitmq:management <\/p>\n<ul>\n<li>\u6f14\u793a&#xff1a;<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"530\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040931-6a697cfbc4e18.png\" width=\"931\" \/><\/p>\n<h4 id=\"%E2%91%A1%E5%90%AF%E5%8A%A8RabbitMQ%E7%9A%84docker%E5%AE%B9%E5%99%A8\">\u2461\u542f\u52a8RabbitMQ\u7684docker\u5bb9\u5668<\/h4>\n<p>docker run -d &#8211;name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:management <\/p>\n<ul>\n<li>\u6f14\u793a&#xff1a;<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"190\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040931-6a697cfbf0528.png\" width=\"1529\" \/><\/p>\n<ul>\n<li>\u8be6\u89e3&#xff1a;<\/li>\n<\/ul>\n<p>5672&#xff1a;\u540e\u7aef\u9879\u76ee\u8fde\u63a5 RabbitMQ\u670d\u52a1\u7684\u7aef\u53e3\u3002\u540c\u65f6\u4e5f\u505a\u4e86\u670d\u52a1\u5668\u3001docker\u5bb9\u5668\u4e8c\u8005\u4e4b\u95f4\u76845672\u7aef\u53e3\u6620\u5c04<\/p>\n<p>15672&#xff1a;Web \u7ba1\u7406\u754c\u9762\u7684\u7aef\u53e3&#xff0c;\u9ed8\u8ba4\u8d26\u53f7\u5bc6\u7801\u5747\u4e3a\u00a0guest\u3002\u540c\u65f6\u4e5f\u505a\u4e86\u670d\u52a1\u5668\u3001docker\u5bb9\u5668\u4e8c\u8005\u4e4b\u95f4\u768415672\u7aef\u53e3\u6620\u5c04<\/p>\n<table>\n<tr>\u547d\u4ee4\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td><span style=\"color:#ff9900\">docker pull rabbitmq:management<\/span><\/td>\n<td>\u53ea\u62c9\u53d6\u955c\u50cf&#xff0c;\u4e0d\u8fd0\u884c<\/td>\n<\/tr>\n<tr>\n<td>docker run \u00a0&#8211;name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:management<\/td>\n<td>\u62c9\u53d6&#xff08;\u5982\u9700&#xff09;&#043; \u521b\u5efa &#043; \u542f\u52a8&#xff08;\u524d\u53f0\u8fd0\u884c&#xff09;<\/td>\n<\/tr>\n<tr>\n<td><span style=\"color:#ff9900\">docker run -d &#8211;name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:management<\/span><\/td>\n<td>\u62c9\u53d6&#xff08;\u5982\u9700&#xff09;&#043; \u521b\u5efa &#043; \u542f\u52a8&#xff08;\u540e\u53f0\u8fd0\u884c&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>docker create &#8211;name rabbitmq rabbitmq:management<\/td>\n<td>\u53ea\u521b\u5efa\u5bb9\u5668&#xff0c;\u4e0d\u542f\u52a8<\/td>\n<\/tr>\n<tr>\n<td>docker start rabbitmq<\/td>\n<td>\u542f\u52a8\u5df2\u521b\u5efa\u7684\u5bb9\u5668<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\u9a8c\u8bc1&#xff1a;<\/li>\n<\/ul>\n<p>\u542f\u52a8\u540e&#xff0c;\u8bbf\u95ee\u00a0http:\/\/localhost:15672\u00a0&#xff08;\u6ce8\u610f&#xff1a;\u5982\u679c\u4f60\u4e0d\u662f\u5728\u672c\u5730\u7684linux\u90e8\u7f72\u7684&#xff0c;\u800c\u662f\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u7684\u8fd9\u4e2arabbitmq\u670d\u52a1&#xff0c;\u5219\u8fd9\u4e2alocalhost\u8981\u66ff\u6362\u6210\u4f60\u81ea\u5df1\u90a3\u53f0\u4e91\u670d\u52a1\u5668\u7684ip\u5730\u5740&#xff09;&#xff0c;\u5373\u53ef\u9a8c\u8bc1\u670d\u52a1\u662f\u5426\u6b63\u5e38\u3002<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"699\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040932-6a697cfc1fd24.png\" width=\"846\" \/><\/p>\n<ul>\n<li>\u653e\u5f00\u4e91\u670d\u52a1\u5668\u7684\u9632\u706b\u5899\u768415672\u7aef\u53e3&#xff1a;<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"288\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040932-6a697cfc551db.png\" width=\"1326\" \/><\/p>\n<ul>\n<li>\u518d\u6b21\u5c1d\u8bd5\u8bbf\u95ee\u524d\u7aef\u754c\u9762&#xff1a;<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"343\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040932-6a697cfc7f07c.png\" width=\"1254\" \/><\/p>\n<p>\u53ef\u89c1\u6b64\u65f6\u6210\u529f\u8bbf\u95ee\u4e86<\/p>\n<ul>\n<li>\u8f93\u5165\u8d26\u53f7\u5bc6\u7801&#xff08;\u9ed8\u8ba4\u90fd\u662fguest&#xff09;&#xff0c;\u767b\u5f55\u7cfb\u7edf\u5185\u90e8<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"171\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040932-6a697cfcaf1fb.png\" width=\"367\" \/><\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"832\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040932-6a697cfcc0ebd.png\" width=\"1920\" \/><\/p>\n<\/p>\n<h3 id=\"2.%20Spring%20Boot%20%E9%A1%B9%E7%9B%AE%E9%85%8D%E7%BD%AE\">2. Spring Boot \u9879\u76ee\u914d\u7f6e<\/h3>\n<h4 id=\"%E2%91%A0%20%E5%BC%95%E5%85%A5%E6%A0%B8%E5%BF%83%E4%BE%9D%E8%B5%96\">\u2460 \u5f15\u5165\u6838\u5fc3\u4f9d\u8d56<\/h4>\n<p>\u5728\u00a0pom.xml\u00a0\u4e2d\u6dfb\u52a0 Spring Boot \u5b98\u65b9\u63d0\u4f9b\u7684 AMQP \u542f\u52a8\u5668&#xff1a;<\/p>\n<p>&lt;!&#8211; rabbitmq&#8211;&gt;<br \/>\n&lt;dependency&gt;<br \/>\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;<br \/>\n    &lt;artifactId&gt;spring-boot-starter-amqp&lt;\/artifactId&gt;<br \/>\n    &lt;version&gt;3.2.7&lt;\/version&gt;<br \/>\n&lt;\/dependency&gt; <\/p>\n<ul>\n<li>\u6f14\u793a&#xff1a;<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"506\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040933-6a697cfd5e4da.png\" width=\"1132\" \/><\/p>\n<ul>\n<li>\u601d\u8003&#xff1a;\u4e3a\u4ec0\u4e48rabbitmq\u7684maven\u4f9d\u8d56\u4e0d\u53ebrabbitmq&#xff0c;\u800c\u662f\u53ebamqp&#xff1f;<\/li>\n<\/ul>\n<p>\u89e3\u7b54&#xff1a;RabbitMQ \u7684 Maven \u4f9d\u8d56\u5c31\u662f\u53eb\u00a0spring-boot-starter-amqp&#xff0c;\u800c\u4e0d\u662f\u00a0spring-boot-starter-rabbitmq&#xff0c;\u56e0\u4e3a Spring \u5b98\u65b9\u5c06 RabbitMQ \u89c6\u4e3a AMQP \u534f\u8bae\u7684\u4e00\u4e2a\u5b9e\u73b0&#xff0c;\u4f9d\u8d56\u547d\u540d\u4f53\u73b0\u7684\u662f\u5bf9\u534f\u8bae\u6807\u51c6\u7684\u4f9d\u8d56\u800c\u975e\u5bf9\u5177\u4f53\u4ea7\u54c1\u7684\u4f9d\u8d56\u3002\u8fd9\u6837\u8bbe\u8ba1\u7684\u597d\u5904\u662f&#xff1a;\u5982\u679c\u672a\u6765\u4f60\u8981\u4ece RabbitMQ \u5207\u6362\u5230\u5176\u4ed6\u652f\u6301 AMQP \u7684\u6d88\u606f\u4e2d\u95f4\u4ef6&#xff0c;\u4ee3\u7801\u65e0\u9700\u6539\u52a8&#xff0c;\u53ea\u9700\u6539\u914d\u7f6e\u5373\u53ef\u3002\u5f53\u7136&#xff0c;\u8fd9\u4e2a\u00a0starter\u00a0\u5e95\u5c42\u5f15\u5165\u7684\u6b63\u662f RabbitMQ \u7684\u5b98\u65b9\u5ba2\u6237\u7aef&#xff0c;\u6240\u4ee5\u5b83\u5c31\u662f\u6211\u4eec\u8981\u627e\u7684\u90a3\u4e2a\u4f9d\u8d56\u3002<\/p>\n<h4 id=\"%E2%91%A1%20%E5%A1%AB%E5%86%99%E8%BF%9E%E6%8E%A5%E9%85%8D%E7%BD%AE\">\u2461 \u586b\u5199\u8fde\u63a5\u914d\u7f6e<\/h4>\n<p>\u5728\u00a0application.yml\u00a0\u4e2d\u914d\u7f6e RabbitMQ \u7684\u8fde\u63a5\u4fe1\u606f&#xff1a;<\/p>\n<p>spring:<br \/>\n  rabbitmq:<br \/>\n    host: 127.0.0.1          # RabbitMQ \u670d\u52a1\u5668\u5730\u5740<br \/>\n    port: 5672               # AMQP \u534f\u8bae\u7aef\u53e3&#xff08;\u6536\u53d1\u6d88\u606f\u7528&#xff09;<br \/>\n    username: guest          # \u767b\u5f55\u7528\u6237\u540d<br \/>\n    password: guest          # \u767b\u5f55\u5bc6\u7801<br \/>\n    virtual-host: \/          # \u865a\u62df\u4e3b\u673a&#xff08;\u76f8\u5f53\u4e8e\u547d\u540d\u7a7a\u95f4&#xff0c;\/ \u4e3a\u9ed8\u8ba4&#xff09; <\/p>\n<h3 id=\"3.%20%E7%BC%96%E5%86%99%E6%94%B6%E5%8F%91%E6%A0%B8%E5%BF%83%E4%BB%A3%E7%A0%81\">3. \u7f16\u5199\u6536\u53d1\u6838\u5fc3\u4ee3\u7801<\/h3>\n<h4 id=\"%E2%91%A0%20%E5%8F%91%E9%80%81%E6%B6%88%E6%81%AF%EF%BC%88%E7%94%9F%E4%BA%A7%E8%80%85%EF%BC%89\">\u2460 \u53d1\u9001\u6d88\u606f&#xff08;\u751f\u4ea7\u8005&#xff09;<\/h4>\n<p>\u6ce8\u5165 Spring \u63d0\u4f9b\u7684\u00a0RabbitTemplate&#xff0c;\u5b83\u5c01\u88c5\u4e86\u6240\u6709\u53d1\u9001\u903b\u8f91\u3002<\/p>\n<p>&#064;RestController<br \/>\n&#064;RequestMapping(&#034;\/mytest&#034;)<br \/>\npublic class TestController {<\/p>\n<p>    &#064;Autowired<br \/>\n    private RabbitTemplate rabbitTemplate;<\/p>\n<p>    &#064;GetMapping(&#034;\/sendTest&#034;)<br \/>\n    public String sendTest(&#064;RequestParam String str){<br \/>\n        \/\/\u53d1\u9001\u6d88\u606f<br \/>\n        \/*<br \/>\n         \u4ea4\u6362\u673a\u3001\u8def\u7531\u952e&#xff08;\u961f\u5217\u540d&#xff09;\u3001\u6d88\u606f\u5185\u5bb9<br \/>\n        *\/<br \/>\n        rabbitTemplate.convertAndSend(&#034;&#034;, &#034;hello-queue&#034;, str);<br \/>\n        return &#034;\u6d88\u606f\u6210\u529f\u53d1\u9001&#034;;<br \/>\n    }<\/p>\n<p>} <\/p>\n<h4 id=\"%E2%91%A1%20%E6%8E%A5%E6%94%B6%E6%B6%88%E6%81%AF%EF%BC%88%E6%B6%88%E8%B4%B9%E8%80%85%EF%BC%89\">\u2461 \u63a5\u6536\u6d88\u606f&#xff08;\u6d88\u8d39\u8005&#xff09;<\/h4>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"216\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040933-6a697cfdb0296.png\" width=\"566\" \/><\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"224\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040933-6a697cfdc471c.png\" width=\"433\" \/><\/p>\n<p>\u4f7f\u7528\u00a0&#064;RabbitListener\u00a0\u6ce8\u89e3\u4f18\u96c5\u5730\u76d1\u542c\u6307\u5b9a\u961f\u5217\u3002<\/p>\n<p>&#064;Component<br \/>\npublic class TestConsumer {<br \/>\n    \/\/ \u76d1\u542c\u540d\u4e3a&#034;hello-queue&#034;\u7684\u961f\u5217&#xff0c;\u5982\u679c\u8be5\u961f\u5217\u5728RabbitMQ\u4e2d\u4e0d\u5b58\u5728\u5219\u81ea\u52a8\u521b\u5efa&#xff0c;\u4e14\u670d\u52a1\u5668\u91cd\u542f\u540e\u961f\u5217\u4f9d\u7136\u4fdd\u7559<br \/>\n    &#064;RabbitListener(queuesToDeclare &#061; &#064;Queue(name &#061; &#034;hello-queue&#034;, durable &#061; &#034;true&#034;))<br \/>\n    public void receive(String message){<br \/>\n        System.out.println(&#034;\u6210\u529f\u6536\u5230\u6d88\u606f&#xff1a;&#034;&#043;message&#043;&#034;&#xff0c;\u540e\u7eed\u53ef\u4ee5\u8fdb\u884c\u6d88\u8d39&#034;);<br \/>\n    }<br \/>\n}<\/p>\n<p>\u5173\u4e8e\u961f\u5217\u7684\u8bf4\u660e&#xff1a;\u4e0a\u8ff0\u4ee3\u7801\u76f4\u63a5\u6307\u5b9a\u4e86\u961f\u5217\u540d\u00a0hello-queue\u3002\u5728\u751f\u4ea7\u73af\u5883\u4e2d&#xff0c;\u66f4\u6807\u51c6\u7684\u505a\u6cd5\u662f\u4f7f\u7528\u00a0&#064;Bean\u00a0\u663e\u5f0f\u58f0\u660e\u00a0Queue\u3001Exchange\u00a0\u53ca\u00a0Binding&#xff0c;\u6216\u8005\u901a\u8fc7\u7ba1\u7406\u754c\u9762\u9884\u5148\u521b\u5efa&#xff0c;\u4ee5\u907f\u514d\u56e0\u961f\u5217\u4e0d\u5b58\u5728\u800c\u5f15\u53d1\u5f02\u5e38\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;&#064;RabbitListener(queuesToDeclare &#061; &#064;Queue(name &#061; &#034;hello-queue&#034;, durable &#061; &#034;true&#034;))\u8fd9\u4e2a\u6ce8\u89e3&#xff0c;\u610f\u601d\u662f<span style=\"color:#ff9900\">\u76d1\u542chello-queue\u961f\u5217&#xff0c;\u5982\u679c\u8be5\u961f\u5217\u4e0d\u5b58\u5728&#xff0c;\u5219\u81ea\u52a8\u521b\u5efa\u4e00\u4e2a\u8be5\u540d\u79f0\u7684\u961f\u5217\u5e76\u653e\u5230rabbitmq\u5bb9\u5668\u4e2d<\/span><\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"474\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040933-6a697cfdd8bf0.png\" width=\"950\" \/><\/p>\n<h4 id=\"%E2%91%A2%20%E4%BF%AE%E6%94%B9%E9%97%AE%E9%A2%98%EF%BC%9Aguest%E7%94%A8%E6%88%B7%E5%8F%AA%E6%94%AF%E6%8C%81%E6%9C%AC%E6%9C%BA%E8%BF%9E%E6%8E%A5%EF%BC%8C%E6%97%A0%E6%B3%95%E9%80%9A%E8%BF%87%E5%A4%96%E9%83%A8%E8%BF%9E%E6%8E%A5\">\u2462 \u4fee\u6539\u95ee\u9898&#xff1a;guest\u7528\u6237\u53ea\u652f\u6301\u672c\u673a\u8fde\u63a5&#xff0c;\u65e0\u6cd5\u901a\u8fc7\u5916\u90e8\u8fde\u63a5<\/h4>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"297\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040934-6a697cfe0bded.png\" width=\"1563\" \/><\/p>\n<p>Spring Boot \u5e94\u7528\u5c1d\u8bd5\u4ece\u5916\u90e8\u8fde\u63a5 RabbitMQ&#xff0c;\u4f46\u4f7f\u7528\u4e86\u00a0guest\u00a0\u7528\u6237\u3002<\/p>\n<p>RabbitMQ \u7684\u5b89\u5168\u7b56\u7565&#xff1a;guest\u00a0\u7528\u6237\u53ea\u80fd\u901a\u8fc7 localhost (127.0.0.1) \u8fde\u63a5&#xff0c;\u4e0d\u5141\u8bb8\u8fdc\u7a0b\u8bbf\u95ee\u3002<\/p>\n<p>&#xff08;\u8bf4\u767d\u4e86\u5c31\u662f&#xff0c;yml\u7684rabbitmq\u670d\u52a1\u7684ip\u914d\u6210127.0.0.1\u3001\u5e76\u5c06\u8fd9\u6bb5\u4ee3\u7801\u653e\u5230\u4e91\u670d\u52a1\u5668\u4e0a\u9762\u8dd1&#xff0c;\u8fd9\u6837guest\u7528\u6237\u53ef\u4ee5\u8fde\u63a5\u3002\u4f46\u662f\u6211\u4eec\u8981\u662f\u5728\u81ea\u5df1\u7684\u7b14\u8bb0\u672c\u4e0a\u8dd1\u4ee3\u7801&#xff0c;yml\u7684rabbitmq\u670d\u52a1\u7684ip\u914d\u6210123.XX.XX.XX&#xff0c;\u5373\u6211\u7684\u90a3\u4e2a\u4e91\u670d\u52a1\u5668\u7684ip&#xff0c;\u8fd9\u6837\u5c31\u4e0d\u884c\u4e86&#xff0c;\u672c\u8d28\u539f\u56e0\u662frabbitmq\u89c4\u5b9aguest\u7528\u6237\u7981\u6b62\u8fdc\u7a0b\u8fde\u63a5&#xff09;\u3002<\/p>\n<p>\u4fee\u6539\u7b56\u7565&#xff1a;\u5728\u4e91\u670d\u52a1\u5668\u4e0a&#xff0c;\u5728 RabbitMQ \u5bb9\u5668\u4e2d\u521b\u5efa\u4e13\u7528\u7528\u6237<\/p>\n<p># \u8fdb\u5165 RabbitMQ \u5bb9\u5668<br \/>\ndocker exec -it rabbitmq bash<\/p>\n<p># \u521b\u5efa\u7528\u6237&#xff08;\u7528\u6237\u540d\u4e3aadmin,\u5bc6\u7801\u4e3a123456&#xff09;<br \/>\nrabbitmqctl add_user admin 123456<\/p>\n<p># \u8d4b\u4e88\u6743\u9650<br \/>\nrabbitmqctl set_permissions -p \/ admin &#034;.*&#034; &#034;.*&#034; &#034;.*&#034;<\/p>\n<p># \u8bbe\u7f6e\u7ba1\u7406\u5458\u6807\u7b7e<br \/>\nrabbitmqctl set_user_tags admin administrator<\/p>\n<p># \u67e5\u770b\u7528\u6237\u5217\u8868\u786e\u8ba4<br \/>\nrabbitmqctl list_users<\/p>\n<p># \u9000\u51fa\u5bb9\u5668<br \/>\nexit <\/p>\n<p>\u6f14\u793a&#xff1a;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"333\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040934-6a697cfe52dfb.png\" width=\"1076\" \/><\/p>\n<p>\u7136\u540e\u518d\u4fee\u6539\u4e00\u4e0b\u540e\u7aef\u9879\u76ee\u7684yml\u7684\u914d\u7f6e&#xff1a;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"697\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040934-6a697cfe870ae.png\" width=\"1077\" \/><\/p>\n<h4 id=\"%E2%91%A3%E6%9F%A5%E7%9C%8B%E4%BF%AE%E6%94%B9%E5%90%8E%E7%9A%84%E6%95%88%E6%9E%9C\">\u2463 \u67e5\u770b\u4fee\u6539\u540e\u7684\u6548\u679c<\/h4>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"259\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040934-6a697cfedbb2b.png\" width=\"1516\" \/><\/p>\n<h3 id=\"4.%20%E6%B5%8B%E8%AF%95%E5%8F%91%E9%80%81%E3%80%81%E6%8E%A5%E6%94%B6%E6%B6%88%E6%81%AF%E7%9A%84%E5%8A%9F%E8%83%BD\">4. \u6d4b\u8bd5\u53d1\u9001\u3001\u63a5\u6536\u6d88\u606f\u7684\u529f\u80fd<\/h3>\n<ul>\n<li>\u53d1\u9001\u6d88\u606f&#xff1a;<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"423\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040935-6a697cff0ec4e.png\" width=\"670\" \/><\/p>\n<ul>\n<li>\u63a5\u6536\u6d88\u606f&#xff1a;<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"258\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040935-6a697cff26741.png\" width=\"577\" \/><\/p>\n<\/p>\n<h2 id=\"%E4%BA%8C%E3%80%81%E4%BB%80%E4%B9%88%E6%97%B6%E5%80%99%E5%BA%94%E8%AF%A5%E4%BD%BF%E7%94%A8%E6%B6%88%E6%81%AF%E9%98%9F%E5%88%97%EF%BC%9F%EF%BC%88%E5%9B%9B%E5%A4%A7%E6%A0%B8%E5%BF%83%E5%9C%BA%E6%99%AF%EF%BC%89\">\u4e8c\u3001\u4ec0\u4e48\u65f6\u5019\u5e94\u8be5\u4f7f\u7528\u6d88\u606f\u961f\u5217&#xff1f;&#xff08;\u56db\u5927\u6838\u5fc3\u573a\u666f&#xff09;<\/h2>\n<p>\u73b0\u5728\u56de\u5230\u6700\u672c\u8d28\u7684\u95ee\u9898&#xff1a;\u6211\u4eec\u5230\u5e95\u5728\u4ec0\u4e48\u201c\u56f0\u5883\u201d\u4e0b&#xff0c;\u624d\u4f1a\u642c\u51fa\u6d88\u606f\u961f\u5217&#xff1f;<\/p>\n<p>\u8bb0\u4f4f\u4e00\u53e5\u8bdd&#xff1a;\u6d88\u606f\u961f\u5217\u89e3\u51b3\u7684\u662f\u201c\u8de8\u7cfb\u7edf\u3001\u8de8\u670d\u52a1\u3001\u8de8\u65f6\u95f4\u201d\u7684\u901a\u4fe1\u95ee\u9898\u3002<\/p>\n<h3 id=\"%E5%9C%BA%E6%99%AF%E4%B8%80%EF%BC%9A%E7%B3%BB%E7%BB%9F%E2%80%9C%E5%8D%A1%E6%AD%BB%E2%80%9D%E4%BA%86%EF%BC%8C%E7%94%A8%E6%88%B7%E6%80%A5%E5%BE%97%E9%AA%82%E4%BA%BA%EF%BC%88%E5%89%8A%E5%B3%B0%E5%A1%AB%E8%B0%B7%EF%BC%89\">\u573a\u666f\u4e00&#xff1a;\u7cfb\u7edf\u201c\u5361\u6b7b\u201d\u4e86&#xff0c;\u7528\u6237\u6025\u5f97\u9a82\u4eba&#xff08;\u524a\u5cf0\u586b\u8c37&#xff09;<\/h3>\n<ul>\n<li>\n<p>\u75db\u70b9\u63cf\u8ff0&#xff1a;\u4ee5\u7535\u5546\u201c\u79d2\u6740\u201d\u4e3a\u4f8b&#xff0c;\u77ac\u65f6\u6d8c\u5165 10 \u4e07\u4e2a\u8bf7\u6c42\u3002\u5982\u679c\u540e\u7aef\u76f4\u63a5\u5904\u7406&#xff0c;\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u4f1a\u88ab\u77ac\u95f4\u6253\u6ee1&#xff0c;CPU \u98d9\u5347&#xff0c;\u6700\u7ec8\u5bfc\u81f4\u7cfb\u7edf\u5d29\u6e83&#xff0c;\u6240\u6709\u7528\u6237\u90fd\u65e0\u6cd5\u4e0b\u5355\u3002<\/p>\n<\/li>\n<li>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u5c06 10 \u4e07\u4e2a\u8bf7\u6c42\u5168\u90e8\u5148\u5199\u5165 MQ \u961f\u5217&#xff0c;\u540e\u7aef\u670d\u52a1\u6309\u7167\u81ea\u5df1\u7684\u6d88\u8d39\u80fd\u529b&#xff08;\u4f8b\u5982\u6bcf\u79d2 2000 \u6761&#xff09;\u7f13\u6162\u62c9\u53d6\u5e76\u5904\u7406\u3002<\/p>\n<\/li>\n<li>\n<p>\u6700\u7ec8\u6548\u679c&#xff1a;\u7cfb\u7edf\u4e0d\u518d\u76f4\u63a5\u627f\u53d7\u6d77\u91cf\u5e76\u53d1\u538b\u529b&#xff0c;\u867d\u7136\u4e2a\u522b\u8bf7\u6c42\u53ef\u80fd\u6709\u5ef6\u8fdf&#xff0c;\u4f46\u6574\u4f53\u670d\u52a1\u4fdd\u6301\u7a33\u5b9a\u3002MQ \u5728\u6b64\u5145\u5f53\u4e86\u201c\u7f13\u51b2\u5927\u575d\u201d\u7684\u4f5c\u7528\u3002<\/p>\n<\/li>\n<\/ul>\n<h3 id=\"%E5%9C%BA%E6%99%AF%E4%BA%8C%EF%BC%9A%E4%B8%80%E4%B8%AA%E5%8A%A8%E4%BD%9C%EF%BC%8C%E8%A6%81%E9%80%9A%E7%9F%A5%E6%97%A0%E6%95%B0%E4%B8%AA%E4%B8%8B%E6%B8%B8%EF%BC%88%E5%BC%82%E6%AD%A5%E8%A7%A3%E8%80%A6%EF%BC%89\">\u573a\u666f\u4e8c&#xff1a;\u4e00\u4e2a\u52a8\u4f5c&#xff0c;\u8981\u901a\u77e5\u65e0\u6570\u4e2a\u4e0b\u6e38&#xff08;\u5f02\u6b65\u89e3\u8026&#xff09;<\/h3>\n<ul>\n<li>\n<p>\u75db\u70b9\u63cf\u8ff0&#xff1a;\u7528\u6237\u652f\u4ed8\u6210\u529f\u540e&#xff0c;\u9700\u8981\u540c\u6b65\u6267\u884c\u53d1\u77ed\u4fe1\u3001\u52a0\u79ef\u5206\u3001\u901a\u77e5\u4ed3\u5e93\u3001\u8bb0\u5f55\u65e5\u5fd7\u7b49\u591a\u4e2a\u64cd\u4f5c\u3002\u82e5\u8fd9\u4e9b\u64cd\u4f5c\u4e32\u884c\u6267\u884c&#xff0c;\u54cd\u5e94\u65f6\u95f4\u4f1a\u7ebf\u6027\u589e\u52a0&#xff0c;\u4e14\u4efb\u4f55\u4e00\u4e2a\u4e0b\u6e38\u7cfb\u7edf\u6545\u969c\u90fd\u53ef\u80fd\u5f71\u54cd\u4e3b\u6d41\u7a0b\u3002<\/p>\n<\/li>\n<li>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u4e3b\u7cfb\u7edf\u4ec5\u9700\u5c06\u201c\u652f\u4ed8\u6210\u529f\u201d\u4e8b\u4ef6\u53d1\u9001\u5230 MQ \u540e&#xff0c;\u7acb\u523b\u8fd4\u56de\u7ed9\u7528\u6237\u3002\u4e0b\u6e38\u5404\u7cfb\u7edf\u5206\u522b\u8ba2\u9605\u8be5\u6d88\u606f&#xff0c;\u5404\u53f8\u5176\u804c\u3002<\/p>\n<\/li>\n<li>\n<p>\u6700\u7ec8\u6548\u679c&#xff1a;\u4e3b\u94fe\u8def\u54cd\u5e94\u901f\u5ea6\u6781\u5feb&#xff1b;\u4e0b\u6e38\u7cfb\u7edf\u5373\u4f7f\u77ed\u6682\u5b95\u673a&#xff0c;\u6d88\u606f\u4e5f\u4f1a\u5728 MQ \u4e2d\u6301\u4e45\u5316\u7b49\u5f85&#xff0c;\u6062\u590d\u540e\u7ee7\u7eed\u6d88\u8d39\u3002MQ \u5728\u6b64\u5145\u5f53\u4e86\u201c\u5f02\u6b65\u4e2d\u95f4\u4eba\u201d\u7684\u89d2\u8272\u3002<\/p>\n<\/li>\n<\/ul>\n<h3 id=\"%E5%9C%BA%E6%99%AF%E4%B8%89%EF%BC%9A%E8%B0%83%E7%94%A8%E7%AC%AC%E4%B8%89%E6%96%B9%E6%8E%A5%E5%8F%A3%EF%BC%8C%E5%AF%B9%E6%96%B9%E6%80%BB%E6%98%AF%E4%B8%8D%E7%BB%99%E5%8A%9B%EF%BC%88%E6%9C%8D%E5%8A%A1%E9%9A%94%E7%A6%BB%E4%B8%8E%E9%87%8D%E8%AF%95%EF%BC%89\">\u573a\u666f\u4e09&#xff1a;\u8c03\u7528\u7b2c\u4e09\u65b9\u63a5\u53e3&#xff0c;\u5bf9\u65b9\u603b\u662f\u4e0d\u7ed9\u529b&#xff08;\u670d\u52a1\u9694\u79bb\u4e0e\u91cd\u8bd5&#xff09;<\/h3>\n<ul>\n<li>\n<p>\u75db\u70b9\u63cf\u8ff0&#xff1a;\u4e1a\u52a1\u5f3a\u4f9d\u8d56\u7b2c\u4e09\u65b9\u5929\u6c14\u6216\u5730\u56fe API&#xff0c;\u4f46\u8be5\u63a5\u53e3\u7f51\u7edc\u4e0d\u7a33\u5b9a&#xff0c;\u65f6\u5e38\u8d85\u65f6\u3002\u82e5\u76f4\u63a5\u5728\u4e1a\u52a1\u7ebf\u7a0b\u4e2d\u8c03\u7528&#xff0c;\u4f1a\u5bfc\u81f4\u7ebf\u7a0b\u963b\u585e&#xff0c;\u751a\u81f3\u62d6\u57ae\u81ea\u8eab\u670d\u52a1\u3002<\/p>\n<\/li>\n<li>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u5c06\u8c03\u7528\u8bf7\u6c42\u53d1\u9001\u5230 MQ \u540e\u7acb\u5373\u8fd4\u56de\u3002\u7531\u72ec\u7acb\u7684\u6d88\u8d39\u670d\u52a1\u62c9\u53d6\u6d88\u606f&#xff0c;\u5e76\u8c03\u7528\u7b2c\u4e09\u65b9\u63a5\u53e3\u3002\u82e5\u5931\u8d25&#xff0c;\u501f\u52a9 RabbitMQ \u7684\u91cd\u8bd5\u673a\u5236&#xff08;\u6216\u7ed3\u5408\u6b7b\u4fe1\u961f\u5217&#xff09;\u8fdb\u884c\u6307\u6570\u9000\u907f\u91cd\u8bd5\u3002<\/p>\n<\/li>\n<li>\n<p>\u6700\u7ec8\u6548\u679c&#xff1a;\u5373\u4f7f\u7b2c\u4e09\u65b9\u63a5\u53e3\u5b8c\u5168\u4e0d\u53ef\u7528&#xff0c;\u6545\u969c\u4e5f\u88ab\u9694\u79bb\u5728\u6d88\u8d39\u670d\u52a1\u5185&#xff0c;\u6838\u5fc3\u4e1a\u52a1\u4e0d\u53d7\u5f71\u54cd\u3002MQ \u5728\u6b64\u5145\u5f53\u4e86\u201c\u4fdd\u9669\u4e1d\u4e0e\u91cd\u8bd5\u5668\u201d\u3002<\/p>\n<\/li>\n<\/ul>\n<h3 id=\"%E5%9C%BA%E6%99%AF%E5%9B%9B%EF%BC%9A%E5%88%86%E5%B8%83%E5%BC%8F%E7%B3%BB%E7%BB%9F%E6%95%B0%E6%8D%AE%E4%B8%8D%E4%B8%80%E8%87%B4%EF%BC%88%E6%9C%80%E7%BB%88%E4%B8%80%E8%87%B4%E6%80%A7%EF%BC%89\">\u573a\u666f\u56db&#xff1a;\u5206\u5e03\u5f0f\u7cfb\u7edf\u6570\u636e\u4e0d\u4e00\u81f4&#xff08;\u6700\u7ec8\u4e00\u81f4\u6027&#xff09;<\/h3>\n<ul>\n<li>\n<p>\u75db\u70b9\u63cf\u8ff0&#xff1a;\u5728\u5fae\u670d\u52a1\u67b6\u6784\u4e2d&#xff0c;\u4fee\u6539\u8ba2\u5355\u72b6\u6001\u548c\u6263\u51cf\u79ef\u5206\u662f\u4e24\u6b21\u72ec\u7acb\u7684\u6570\u636e\u5e93\u64cd\u4f5c&#xff0c;\u65e0\u6cd5\u901a\u8fc7\u672c\u5730\u4e8b\u52a1\u4fdd\u8bc1\u5f3a\u4e00\u81f4\u6027\u3002<\/p>\n<\/li>\n<li>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u5229\u7528 MQ \u7684\u4e8b\u52a1\u6d88\u606f\u6216\u53ef\u9760\u6d88\u606f\u673a\u5236&#xff0c;\u786e\u4fdd\u201c\u8ba2\u5355\u72b6\u6001\u66f4\u65b0\u201d\u4e0e\u201c\u79ef\u5206\u6d88\u606f\u53d1\u9001\u201d\u8981\u4e48\u540c\u65f6\u6210\u529f&#xff0c;\u8981\u4e48\u540c\u65f6\u5931\u8d25\u3002\u79ef\u5206\u670d\u52a1\u6d88\u8d39\u6d88\u606f\u540e\u66f4\u65b0\u79ef\u5206\u8868\u3002<\/p>\n<\/li>\n<li>\n<p>\u6700\u7ec8\u6548\u679c&#xff1a;\u5373\u4f7f\u79ef\u5206\u66f4\u65b0\u6709\u77ed\u6682\u5ef6\u8fdf&#xff0c;\u7cfb\u7edf\u6700\u7ec8\u4e5f\u80fd\u8fbe\u5230\u6570\u636e\u4e00\u81f4\u3002MQ \u5728\u6b64\u4fdd\u969c\u4e86\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u6700\u7ec8\u4e00\u81f4\u6027\u3002<\/p>\n<\/li>\n<\/ul>\n<\/p>\n<h2 id=\"%E7%BB%93%E8%AF%AD\">\u7ed3\u8bed<\/h2>\n<p>\u901a\u8fc7\u672c\u6587&#xff0c;\u6211\u4eec\u5b8c\u6210\u4e86\u4e00\u4e2arabbitmq\u7684\u5165\u95e8\u6848\u4f8b\u5b9e\u6218&#xff0c;\u4f53\u73b0\u4e86\u771f\u5b9e\u4e1a\u52a1\u573a\u666f\u7684\u7f29\u5f71\u3002\u5f53\u4f60\u518d\u542c\u5230\u201c\u524a\u5cf0\u586b\u8c37\u201d\u6216\u201c\u89e3\u8026\u201d\u8fd9\u4e9b\u8bcd\u65f6&#xff0c;\u5e94\u5f53\u80fd\u76f4\u89c2\u5730\u8054\u60f3\u5230\u5176\u80cc\u540e\u7684\u4ee3\u7801\u4e0e\u67b6\u6784\u903b\u8f91\u3002<\/p>\n<p>\u9700\u8981\u660e\u786e\u7684\u662f&#xff0c;\u540c\u4e00\u4e2a\u670d\u52a1\u5185\u81ea\u5df1\u53d1\u81ea\u5df1\u6536\u53ea\u662f\u6559\u5b66\u6f14\u793a&#xff0c;\u771f\u6b63\u7684\u6218\u573a\u6c38\u8fdc\u662f\u201c\u670d\u52a1A\u53d1 -&gt; MQ -&gt; \u670d\u52a1B\u6536\u201d\u3002<\/p>\n<p>\u5982\u679c\u4f60\u5bf9\u8fd9\u4e2a\u201c\u5206\u5e03\u5f0f\u94fe\u8def\u201d\u7684\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b\u611f\u5174\u8da3&#xff0c;\u6216\u8005\u5728\u5b9e\u9645\u843d\u5730\u4e2d\u9047\u5230\u4e86\u5177\u4f53\u95ee\u9898&#xff0c;\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u7559\u8a00\u4ea4\u6d41&#xff01;<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00<br \/>\n\u5f88\u591a\u521d\u5b66\u8005\u5728\u5b66\u4e60\u6d88\u606f\u961f\u5217&#xff08;MQ&#xff09;\u65f6&#xff0c;\u90fd\u4f1a\u6709\u8fd9\u6837\u7684\u56f0\u60d1&#xff1a;\u7f51\u4e0a\u7684\u8d44\u6599\u8981\u4e48\u901a\u7bc7\u662f\u201c\u4ea4\u6362\u673a\u201d\u201c\u7ed1\u5b9a\u201d\u7b49\u6666\u6da9\u539f\u7406&#xff0c;\u8981\u4e48\u5c31\u662f\u5728\u4e00\u4e2a\u9879\u76ee\u91cc\u81ea\u5df1\u53d1\u81ea\u5df1\u6536&#xff0c;\u8ba9\u4eba\u611f\u89c9\u201c\u8131\u4e86\u88e4\u5b50\u653e\u5c41\u201d\u3002\u8fd9\u6837\u7684\u5185\u5bb9\u5f88\u96be\u8ba9\u4eba\u7406\u89e3 MQ \u5230\u5e95\u80fd\u89e3\u51b3\u4ec0\u4e48\u5b9e\u9645\u95ee\u9898\u3002<br \/>\n\u672c\u6587\u7684\u76ee\u6807\u5c31\u662f\u5f7b\u5e95\u89e3\u51b3\u8fd9\u4e2a\u75db\u70b9\u3002\u6211\u4eec\u5c06\u5206\u4e24\u90e8\u5206\u5c55\u5f00&#xff1a; Spring Boot \u6574\u5408 RabbitMQ \u5b9e\u6218&#xff1a;\u63d0\u4f9b\u4e00\u4e2a\u201c\u5230\u624b\u5373\u7528\u201d\u7684\u6700\u7b80\u4ee3\u7801<\/p>\n","protected":false},"author":2,"featured_media":86870,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9812,663,1271,9813,1155],"topic":[],"class_list":["post-86888","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-9812","tag-rabbitmq","tag-springboot","tag-9813","tag-1155"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e00\u6587\u8bb2\u900f\uff1aSpring Boot \u6574\u5408 RabbitMQ\u3001\u5165\u95e8demo\u6848\u4f8b\u624b\u628a\u624b\u6559\u5b66\u3001MQ \u7684\u56db\u5927\u5b9e\u6218\u573a\u666f - \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\/86888.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e00\u6587\u8bb2\u900f\uff1aSpring Boot \u6574\u5408 RabbitMQ\u3001\u5165\u95e8demo\u6848\u4f8b\u624b\u628a\u624b\u6559\u5b66\u3001MQ \u7684\u56db\u5927\u5b9e\u6218\u573a\u666f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u524d\u8a00 \u5f88\u591a\u521d\u5b66\u8005\u5728\u5b66\u4e60\u6d88\u606f\u961f\u5217&#xff08;MQ&#xff09;\u65f6&#xff0c;\u90fd\u4f1a\u6709\u8fd9\u6837\u7684\u56f0\u60d1&#xff1a;\u7f51\u4e0a\u7684\u8d44\u6599\u8981\u4e48\u901a\u7bc7\u662f\u201c\u4ea4\u6362\u673a\u201d\u201c\u7ed1\u5b9a\u201d\u7b49\u6666\u6da9\u539f\u7406&#xff0c;\u8981\u4e48\u5c31\u662f\u5728\u4e00\u4e2a\u9879\u76ee\u91cc\u81ea\u5df1\u53d1\u81ea\u5df1\u6536&#xff0c;\u8ba9\u4eba\u611f\u89c9\u201c\u8131\u4e86\u88e4\u5b50\u653e\u5c41\u201d\u3002\u8fd9\u6837\u7684\u5185\u5bb9\u5f88\u96be\u8ba9\u4eba\u7406\u89e3 MQ \u5230\u5e95\u80fd\u89e3\u51b3\u4ec0\u4e48\u5b9e\u9645\u95ee\u9898\u3002 \u672c\u6587\u7684\u76ee\u6807\u5c31\u662f\u5f7b\u5e95\u89e3\u51b3\u8fd9\u4e2a\u75db\u70b9\u3002\u6211\u4eec\u5c06\u5206\u4e24\u90e8\u5206\u5c55\u5f00&#xff1a; Spring Boot \u6574\u5408 RabbitMQ \u5b9e\u6218&#xff1a;\u63d0\u4f9b\u4e00\u4e2a\u201c\u5230\u624b\u5373\u7528\u201d\u7684\u6700\u7b80\u4ee3\u7801\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/86888.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-29T04:09:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040930-6a697cfa5e8b0.png\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86888.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/86888.html\",\"name\":\"\u4e00\u6587\u8bb2\u900f\uff1aSpring Boot \u6574\u5408 RabbitMQ\u3001\u5165\u95e8demo\u6848\u4f8b\u624b\u628a\u624b\u6559\u5b66\u3001MQ \u7684\u56db\u5927\u5b9e\u6218\u573a\u666f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-29T04:09:36+00:00\",\"dateModified\":\"2026-07-29T04:09:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/86888.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/86888.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86888.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e00\u6587\u8bb2\u900f\uff1aSpring Boot \u6574\u5408 RabbitMQ\u3001\u5165\u95e8demo\u6848\u4f8b\u624b\u628a\u624b\u6559\u5b66\u3001MQ \u7684\u56db\u5927\u5b9e\u6218\u573a\u666f\"}]},{\"@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":"\u4e00\u6587\u8bb2\u900f\uff1aSpring Boot \u6574\u5408 RabbitMQ\u3001\u5165\u95e8demo\u6848\u4f8b\u624b\u628a\u624b\u6559\u5b66\u3001MQ \u7684\u56db\u5927\u5b9e\u6218\u573a\u666f - \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\/86888.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4e00\u6587\u8bb2\u900f\uff1aSpring Boot \u6574\u5408 RabbitMQ\u3001\u5165\u95e8demo\u6848\u4f8b\u624b\u628a\u624b\u6559\u5b66\u3001MQ \u7684\u56db\u5927\u5b9e\u6218\u573a\u666f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u524d\u8a00 \u5f88\u591a\u521d\u5b66\u8005\u5728\u5b66\u4e60\u6d88\u606f\u961f\u5217&#xff08;MQ&#xff09;\u65f6&#xff0c;\u90fd\u4f1a\u6709\u8fd9\u6837\u7684\u56f0\u60d1&#xff1a;\u7f51\u4e0a\u7684\u8d44\u6599\u8981\u4e48\u901a\u7bc7\u662f\u201c\u4ea4\u6362\u673a\u201d\u201c\u7ed1\u5b9a\u201d\u7b49\u6666\u6da9\u539f\u7406&#xff0c;\u8981\u4e48\u5c31\u662f\u5728\u4e00\u4e2a\u9879\u76ee\u91cc\u81ea\u5df1\u53d1\u81ea\u5df1\u6536&#xff0c;\u8ba9\u4eba\u611f\u89c9\u201c\u8131\u4e86\u88e4\u5b50\u653e\u5c41\u201d\u3002\u8fd9\u6837\u7684\u5185\u5bb9\u5f88\u96be\u8ba9\u4eba\u7406\u89e3 MQ \u5230\u5e95\u80fd\u89e3\u51b3\u4ec0\u4e48\u5b9e\u9645\u95ee\u9898\u3002 \u672c\u6587\u7684\u76ee\u6807\u5c31\u662f\u5f7b\u5e95\u89e3\u51b3\u8fd9\u4e2a\u75db\u70b9\u3002\u6211\u4eec\u5c06\u5206\u4e24\u90e8\u5206\u5c55\u5f00&#xff1a; Spring Boot \u6574\u5408 RabbitMQ \u5b9e\u6218&#xff1a;\u63d0\u4f9b\u4e00\u4e2a\u201c\u5230\u624b\u5373\u7528\u201d\u7684\u6700\u7b80\u4ee3\u7801","og_url":"https:\/\/www.wsisp.com\/helps\/86888.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-29T04:09:36+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729040930-6a697cfa5e8b0.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/86888.html","url":"https:\/\/www.wsisp.com\/helps\/86888.html","name":"\u4e00\u6587\u8bb2\u900f\uff1aSpring Boot \u6574\u5408 RabbitMQ\u3001\u5165\u95e8demo\u6848\u4f8b\u624b\u628a\u624b\u6559\u5b66\u3001MQ \u7684\u56db\u5927\u5b9e\u6218\u573a\u666f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-29T04:09:36+00:00","dateModified":"2026-07-29T04:09:36+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/86888.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/86888.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/86888.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4e00\u6587\u8bb2\u900f\uff1aSpring Boot \u6574\u5408 RabbitMQ\u3001\u5165\u95e8demo\u6848\u4f8b\u624b\u628a\u624b\u6559\u5b66\u3001MQ \u7684\u56db\u5927\u5b9e\u6218\u573a\u666f"}]},{"@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\/86888","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=86888"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/86888\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/86870"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=86888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=86888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=86888"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=86888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}