{"id":111790,"date":"2026-10-01T21:33:41","date_gmt":"2026-10-01T13:33:41","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/111790.html"},"modified":"2026-10-01T21:33:41","modified_gmt":"2026-10-01T13:33:41","slug":"rabbitmq-%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e5%92%8c-directrabbitconfig-%e7%9a%84-springboot-4-0-x-%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/111790.html","title":{"rendered":"RabbitMQ \u73af\u5883\u914d\u7f6e\u548c DirectRabbitConfig \u7684 SpringBoot 4.0.X \u7248\u672c"},"content":{"rendered":"<h2>\u4e00\u3001Rabbit MQ\u96a7\u9053\u7684\u521b\u5efa<\/h2>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u6211\u4e0d\u60f3\u8ba9\u5916\u9762\u7684\u7f51\u7edc\u8bbf\u95ee\u6211\u90fd\u4e91\u670d\u52a1\u5668&#xff0c;\u6211\u53ea\u8ba9\u6211\u672c\u673a\u6765\u8bbf\u95ee\u6211\u7684\u4e91\u670d\u52a1\u5668&#xff0c;\u4ec5\u9650\u6211\u672c\u5730\u6d4b\u8bd5&#xff0c;\u8fd8\u672a\u4e0a\u7ebf\u3002<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6211\u7ed9\u6211\u7684RabbitMQ \u8bbe\u7f6e\u4e86\u672c\u5730\u7684\u96a7\u9053&#xff0c;\u4f46\u662f\u53ea\u8bbe\u7f6e\u4e86\u7aef\u53e3\u53f7\u4e3a&#xff1a;15672 \u7684\u7aef\u53e3\u53f7&#xff0c;\u8fd9\u65f6\u5019\u662f\u6211\u7684RabbitMQ \u7684\u53ef\u89c6\u5316\u63d2\u4ef6\u7684\u5165\u53e3&#xff0c;\u6253\u5f00\u4e91\u670d\u52a1\u5668\u4e4b\u540e\u7528\u6d4f\u89c8\u5668\u8bbf\u95ee 127.0.0.1:15672 \u5c31\u80fd\u8fdb\u53bb\u53ef\u89c6\u5316\u754c\u9762&#xff0c;\u4f46\u662f\u6211\u5e76\u6ca1\u6709\u7ed9\u6211\u7684\u4ee3\u7801\u7684\u7aef\u53e3&#xff1a;5672 \u7aef\u53e3\u7ed9\u91ca\u653e&#xff0c;\u6240\u4ee5\u6211\u8fd0\u884c\u4ee3\u7801\u62a5\u51fa\u4e86\u4e0b\u9762\u7684\u9519\u8bef\u3002<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"633\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001133338-6abe61323cdd2.png\" width=\"1239\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"224\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001133338-6abe6132aa3ca.png\" width=\"1708\" \/><\/p>\n<h3>\u89e3\u51b3\u65b9\u6cd5&#xff1a;<\/h3>\n<h4>\u00a0 \u00a0 \u00a0 \u00a0 \u5728\u4e91\u670d\u52a1\u5668\u4e0a\u7ed9Rabbti MQ\u7684\u7aef\u53e3\u53f7\u4e3a5672 \u7684\u7aef\u53e3\u7ed9\u91ca\u653e\u5f00\u6765\u3002<\/h4>\n<h3>\u6b65\u9aa4&#xff1a;<\/h3>\n<h4>1.\u00a0\u5148\u53f3\u952e\u4f60\u7684\u4e91\u670d\u52a1\u5668<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"239\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001133338-6abe6132dd7c6.png\" width=\"618\" \/><\/p>\n<h4>2.\u53f3\u952e\u4e4b\u540e\u70b9\u5f00\u5c5e\u6027<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"477\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001133338-6abe6132ecd2f.png\" width=\"689\" \/><\/p>\n<h4>3. \u70b9\u51fb\u96a7\u9053&#xff0c;\u518d\u70b9\u51fb\u6dfb\u52a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1007\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001133339-6abe6133145c3.png\" width=\"1217\" \/><\/h4>\n<h4>4. \u6dfb\u52a0\u4e0b\u9762\u7684\u89c4\u5219&#xff0c;\u7aef\u53e3\u53f7\u4e3a 5672&#xff0c; \u4e24\u4e2a\u90fd\u662f5672&#xff0c;\u6e90\u4e3b\u673a\u548c\u76ee\u6807\u4e3b\u673a\u90fd\u662flocalhost&#xff08;\u672c\u673a\u7684\u610f\u601d&#xff09;&#xff0c;\u6dfb\u52a0\u5b8c\u6bd5\u4e4b\u540e\u91cd\u542f&#xff0c;\u89e3\u51b3\u7a0b\u5e8f\u8bbf\u95ee Rabbit MQ \u7aef\u53e3\u672a\u88ab\u91ca\u653e\u7684\u95ee\u9898<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"807\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001133339-6abe613381115.png\" width=\"1149\" \/><\/p>\n<\/p>\n<h2>\u4e8c\u3001SpringBoot 4.0.X \u7248\u672c\u4e0b Rabbit MQ \u7684\u914d\u7f6e\u7684\u66f4\u65b0<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"526\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001133339-6abe6133d47bf.png\" width=\"1075\" \/><\/p>\n<p>\u5728SpringBoot 4.0.X \u7248\u672c\u4e0b spring.rabbitmq.listener.simple.retry.max-attempts&#061;5 \u5df2\u7ecf\u88ab\u5e9f\u5f03\u6539\u540d\u4e86\u3002\u6240\u4ee5\u56e0\u4e3a\u627e\u4e0d\u5230 spring.rabbitmq.listener.simple.retry.max-attempts&#061;5 \u6240\u4ee5\u4f1a\u6807\u7ea2&#xff0c;\u9700\u8981\u6539\u4e3aspring.rabbitmq.listener.simple.retry.max-retries&#061;5\u00a0\u9ed8\u8ba4\u91cd\u8bd5 5 \u6b21\u3002<\/p>\n<h4>\u8fd9\u662f\u6700\u65b0\u7684mq\u914d\u7f6e\u6587\u4ef6<\/h4>\n<p>## mq ##<br \/>\nspring.rabbitmq.host&#061;127.0.0.1<br \/>\nspring.rabbitmq.port&#061;5672<br \/>\nspring.rabbitmq.username&#061;admin<br \/>\nspring.rabbitmq.password&#061;admin<br \/>\n#\u6d88\u606f\u786e\u8ba4\u673a\u5236&#xff0c;\u9ed8\u8ba4auto<br \/>\nspring.rabbitmq.listener.simple.acknowledge-mode&#061;auto<br \/>\n#\u8bbe\u7f6e\u5931\u8d25\u91cd\u8bd5 5\u6b21<br \/>\nspring.rabbitmq.listener.simple.retry.enabled&#061;true<br \/>\nspring.rabbitmq.listener.simple.retry.max-retries&#061;5<\/p>\n<p>\u867d\u7136\u8001\u7684\u6587\u4ef6\u53ef\u80fd\u4f1a\u6b63\u5e38\u8fd0\u884c&#xff0c;\u4f46\u662f\u5176\u4e2d\u7684\u5f2f\u5f2f\u7ed5\u7ed5\u592a\u591a&#xff0c;\u535a\u4e3b\u641e\u4e0d\u660e\u767d&#xff0c;\u4eceSprintBoot \u76843.0.X \u7248\u672c\u5230 4.0.X \u672c\u5c31\u662f\u4e00\u4e2a\u5927\u6311\u6218&#xff0c;\u6240\u6709\u7684\u73af\u5883\u90fd\u53ef\u80fd\u51fa\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2>\u4e09\u3001SpringBoot4 &#043; Spring AMQP3&#xff0c;\u7c7b\u6539\u540d\u4e86&#xff01;<\/h2>\n<p>Jackson2JsonMessageConverter \u662f\u9002\u914d Jackson2 \u7684\u7c7b&#xff0c;\u5728 Spring AMQP3&#xff08;SpringBoot4 \u914d\u5957&#xff09;\u91cc\u5e9f\u5f03&#xff0c;\u6362\u6210\u4e86 JacksonJsonMessageConverter&#xff08;\u9002\u914d Jackson3&#xff09;\u3002\u8fd9\u4e24\u4e2a\u62a5\u9519\u7684\u539f\u56e0\u5c31\u662f\u5bfc\u5165\u4e86\u88ab\u5e9f\u5f03\u7684\u5305&#xff0c;\u73b0\u5728\u4f7f\u7528\u7684\u662f\u4e0b\u9762\u8fd9\u4e24\u4e2a<\/p>\n<p>import org.springframework.amqp.support.converter.JacksonJsonMessageConverter;<\/p>\n<p>&#064;Bean<br \/>\npublic MessageConverter jsonMessageConverter(){<br \/>\n    return new JacksonJsonMessageConverter();<br \/>\n}<\/p>\n<p>\u5305\u8def\u5f84\u4e0d\u53d8&#xff1a;org.springframework.amqp.support.converter.&#xff0c;\u53ea\u662f\u7c7b\u540d\u53bb\u6389\u4e862\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"180\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001133340-6abe61341beba.png\" width=\"795\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"90\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001133340-6abe61342da9a.png\" width=\"1014\" \/><\/p>\n<h4>DirectRabbitConfig SpringBoot 3.X \u7248\u672c\u7684<\/h4>\n<p>package com.example.lotterysystem.common.config;<\/p>\n<p>import org.springframework.amqp.core.Binding;<br \/>\nimport org.springframework.amqp.core.BindingBuilder;<br \/>\nimport org.springframework.amqp.core.DirectExchange;<br \/>\nimport org.springframework.amqp.core.Queue;<br \/>\nimport org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;<br \/>\nimport org.springframework.amqp.support.converter.MessageConverter;<br \/>\nimport org.springframework.context.annotation.Bean;<br \/>\nimport org.springframework.context.annotation.Configuration;<\/p>\n<p>&#064;Configuration<br \/>\npublic class DirectRabbitConfig {<br \/>\n    public static final String QUEUE_NAME &#061; &#034;DirectQueue&#034;;<br \/>\n    public static final String EXCHANGE_NAME &#061; &#034;DirectExchange&#034;;<br \/>\n    public static final String ROUTING &#061; &#034;DirectRouting&#034;;<br \/>\n    \/**<br \/>\n     * \u961f\u5217 \u8d77\u540d&#xff1a;DirectQueue<br \/>\n     *<br \/>\n     * &#064;return<br \/>\n     *\/<br \/>\n    &#064;Bean<br \/>\n    public Queue directQueue() {<br \/>\n        \/\/ durable:\u662f\u5426\u6301\u4e45\u5316,\u9ed8\u8ba4\u662ffalse,\u6301\u4e45\u5316\u961f\u5217&#xff1a;\u4f1a\u88ab\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a&#xff0c;\u5f53\u6d88\u606f\u4ee3\u7406\u91cd\u542f\u65f6\u4ecd\u7136\u5b58\u5728&#xff0c;\u6682\u5b58\u961f\u5217&#xff1a;\u5f53\u524d\u8fde\u63a5\u6709\u6548<br \/>\n        \/\/ exclusive:\u9ed8\u8ba4\u4e5f\u662ffalse&#xff0c;\u53ea\u80fd\u88ab\u5f53\u524d\u521b\u5efa\u7684\u8fde\u63a5\u4f7f\u2f64&#xff0c;\u2f7d\u4e14\u5f53\u8fde\u63a5\u5173\u95ed\u540e\u961f\u5217\u5373\u88ab\u5220\u9664\u3002\u6b64\u53c2\u8003\u4f18\u5148\u7ea7\u2fbc\u4e8edurable<br \/>\n        \/\/ autoDelete:\u662f\u5426\u2f83\u52a8\u5220\u9664&#xff0c;\u5f53\u6ca1\u6709\u2f63\u4ea7\u8005\u6216\u8005\u6d88\u8d39\u8005\u4f7f\u2f64\u6b64\u961f\u5217&#xff0c;\u8be5\u961f\u5217\u4f1a\u2f83\u52a8\u5220\u9664\u3002<br \/>\n        \/\/ return new Queue(&#034;DirectQueue&#034;,true,true,false);<br \/>\n        \/\/ \u2f00\u822c\u8bbe\u7f6e\u2f00\u4e0b\u961f\u5217\u7684\u6301\u4e45\u5316\u5c31\u597d,\u5176\u4f59\u4e24\u4e2a\u5c31\u662f\u9ed8\u8ba4false<br \/>\n        return new Queue(QUEUE_NAME,true);<br \/>\n    }<br \/>\n    \/**<br \/>\n     * Direct\u4ea4\u6362\u673a \u8d77\u540d&#xff1a;DirectExchange<br \/>\n     *<br \/>\n     * &#064;return<br \/>\n     *\/<br \/>\n    &#064;Bean<br \/>\n    DirectExchange directExchange() {<br \/>\n        return new DirectExchange(EXCHANGE_NAME,true,false);<br \/>\n    }<\/p>\n<p>    \/**<br \/>\n     * \u7ed1\u5b9a \u5c06\u961f\u5217\u548c\u4ea4\u6362\u673a\u7ed1\u5b9a, \u5e76\u8bbe\u7f6e\u2f64\u4e8e\u5339\u914d\u952e&#xff1a;DirectRouting<br \/>\n     *<br \/>\n     * &#064;return<br \/>\n     *\/<br \/>\n    &#064;Bean<br \/>\n    Binding bindingDirect() {<br \/>\n        return BindingBuilder.bind(directQueue())<br \/>\n                .to(directExchange())<br \/>\n                .with(ROUTING);<br \/>\n    }<\/p>\n<p>    &#064;Bean<br \/>\n    public MessageConverter jsonMessageConverter(){<br \/>\n        new Jackson2JsonMessageConverter();<br \/>\n    }<\/p>\n<p>}<\/p>\n<h4>DirectRabbitConfig SpringBoot 4.X \u7248\u672c\u7684<\/h4>\n<p>package com.example.lotterysystem.common.config;<\/p>\n<p>import org.springframework.amqp.core.Binding;<br \/>\nimport org.springframework.amqp.core.BindingBuilder;<br \/>\nimport org.springframework.amqp.core.DirectExchange;<br \/>\nimport org.springframework.amqp.core.Queue;<br \/>\nimport org.springframework.amqp.support.converter.JacksonJsonMessageConverter;<br \/>\nimport org.springframework.amqp.support.converter.MessageConverter;<br \/>\nimport org.springframework.context.annotation.Bean;<br \/>\nimport org.springframework.context.annotation.Configuration;<\/p>\n<p>&#064;Configuration<br \/>\npublic class DirectRabbitConfig {<br \/>\n    public static final String QUEUE_NAME &#061; &#034;DirectQueue&#034;;<br \/>\n    public static final String EXCHANGE_NAME &#061; &#034;DirectExchange&#034;;<br \/>\n    public static final String ROUTING &#061; &#034;DirectRouting&#034;;<br \/>\n    \/**<br \/>\n     * \u961f\u5217 \u8d77\u540d&#xff1a;DirectQueue<br \/>\n     *<br \/>\n     * &#064;return<br \/>\n     *\/<br \/>\n    &#064;Bean<br \/>\n    public Queue directQueue() {<br \/>\n        \/\/ durable:\u662f\u5426\u6301\u4e45\u5316,\u9ed8\u8ba4\u662ffalse,\u6301\u4e45\u5316\u961f\u5217&#xff1a;\u4f1a\u88ab\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a&#xff0c;\u5f53\u6d88\u606f\u4ee3\u7406\u91cd\u542f\u65f6\u4ecd\u7136\u5b58\u5728&#xff0c;\u6682\u5b58\u961f\u5217&#xff1a;\u5f53\u524d\u8fde\u63a5\u6709\u6548<br \/>\n        \/\/ exclusive:\u9ed8\u8ba4\u4e5f\u662ffalse&#xff0c;\u53ea\u80fd\u88ab\u5f53\u524d\u521b\u5efa\u7684\u8fde\u63a5\u4f7f\u2f64&#xff0c;\u2f7d\u4e14\u5f53\u8fde\u63a5\u5173\u95ed\u540e\u961f\u5217\u5373\u88ab\u5220\u9664\u3002\u6b64\u53c2\u8003\u4f18\u5148\u7ea7\u2fbc\u4e8edurable<br \/>\n        \/\/ autoDelete:\u662f\u5426\u2f83\u52a8\u5220\u9664&#xff0c;\u5f53\u6ca1\u6709\u2f63\u4ea7\u8005\u6216\u8005\u6d88\u8d39\u8005\u4f7f\u2f64\u6b64\u961f\u5217&#xff0c;\u8be5\u961f\u5217\u4f1a\u2f83\u52a8\u5220\u9664\u3002<br \/>\n        \/\/ return new Queue(&#034;DirectQueue&#034;,true,true,false);<br \/>\n        \/\/ \u2f00\u822c\u8bbe\u7f6e\u2f00\u4e0b\u961f\u5217\u7684\u6301\u4e45\u5316\u5c31\u597d,\u5176\u4f59\u4e24\u4e2a\u5c31\u662f\u9ed8\u8ba4false<br \/>\n        return new Queue(QUEUE_NAME,true);<br \/>\n    }<br \/>\n    \/**<br \/>\n     * Direct\u4ea4\u6362\u673a \u8d77\u540d&#xff1a;DirectExchange<br \/>\n     *<br \/>\n     * &#064;return<br \/>\n     *\/<br \/>\n    &#064;Bean<br \/>\n    DirectExchange directExchange() {<br \/>\n        return new DirectExchange(EXCHANGE_NAME,true,false);<br \/>\n    }<\/p>\n<p>    \/**<br \/>\n     * \u7ed1\u5b9a \u5c06\u961f\u5217\u548c\u4ea4\u6362\u673a\u7ed1\u5b9a, \u5e76\u8bbe\u7f6e\u2f64\u4e8e\u5339\u914d\u952e&#xff1a;DirectRouting<br \/>\n     *<br \/>\n     * &#064;return<br \/>\n     *\/<br \/>\n    &#064;Bean<br \/>\n    Binding bindingDirect() {<br \/>\n        return BindingBuilder.bind(directQueue())<br \/>\n                .to(directExchange())<br \/>\n                .with(ROUTING);<br \/>\n    }<\/p>\n<p>    &#064;Bean<br \/>\n    public MessageConverter jsonMessageConverter(){<br \/>\n        return new JacksonJsonMessageConverter();<br \/>\n    }<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001Rabbit MQ\u96a7\u9053\u7684\u521b\u5efa\u6211\u4e0d\u60f3\u8ba9\u5916\u9762\u7684\u7f51\u7edc\u8bbf\u95ee\u6211\u90fd\u4e91\u670d\u52a1\u5668&#xff0c;\u6211\u53ea\u8ba9\u6211\u672c\u673a\u6765\u8bbf\u95ee\u6211\u7684\u4e91\u670d\u52a1\u5668&#xff0c;\u4ec5\u9650\u6211\u672c\u5730\u6d4b\u8bd5&#xff0c;\u8fd8\u672a\u4e0a\u7ebf\u3002\u6211\u7ed9\u6211\u7684RabbitMQ \u8bbe\u7f6e\u4e86\u672c\u5730\u7684\u96a7\u9053&#xff0c;\u4f46\u662f\u53ea\u8bbe\u7f6e\u4e86\u7aef\u53e3\u53f7\u4e3a&#xff1a;15672 \u7684\u7aef\u53e3\u53f7&#xff0c;\u8fd9\u65f6\u5019\u662f\u6211\u7684RabbitMQ \u7684\u53ef\u89c6\u5316\u63d2\u4ef6\u7684\u5165\u53e3&#xff0c;\u6253\u5f00\u4e91\u670d\u52a1\u5668\u4e4b\u540e\u7528\u6d4f\u89c8\u5668\u8bbf\u95ee 127.0.0.1:15672 \u5c31\u80fd\u8fdb\u53bb\u53ef\u89c6\u5316\u754c\u9762&#xff0c;\u4f46\u662f\u6211\u5e76\u6ca1\u6709\u7ed9\u6211\u7684\u4ee3\u7801<\/p>\n","protected":false},"author":2,"featured_media":111781,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11653,3303,663,98],"topic":[],"class_list":["post-111790","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-11653","tag-java-rabbitmq","tag-rabbitmq","tag-spring-boot"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RabbitMQ \u73af\u5883\u914d\u7f6e\u548c DirectRabbitConfig \u7684 SpringBoot 4.0.X \u7248\u672c - \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\/111790.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RabbitMQ \u73af\u5883\u914d\u7f6e\u548c DirectRabbitConfig \u7684 SpringBoot 4.0.X \u7248\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001Rabbit MQ\u96a7\u9053\u7684\u521b\u5efa\u6211\u4e0d\u60f3\u8ba9\u5916\u9762\u7684\u7f51\u7edc\u8bbf\u95ee\u6211\u90fd\u4e91\u670d\u52a1\u5668&#xff0c;\u6211\u53ea\u8ba9\u6211\u672c\u673a\u6765\u8bbf\u95ee\u6211\u7684\u4e91\u670d\u52a1\u5668&#xff0c;\u4ec5\u9650\u6211\u672c\u5730\u6d4b\u8bd5&#xff0c;\u8fd8\u672a\u4e0a\u7ebf\u3002\u6211\u7ed9\u6211\u7684RabbitMQ \u8bbe\u7f6e\u4e86\u672c\u5730\u7684\u96a7\u9053&#xff0c;\u4f46\u662f\u53ea\u8bbe\u7f6e\u4e86\u7aef\u53e3\u53f7\u4e3a&#xff1a;15672 \u7684\u7aef\u53e3\u53f7&#xff0c;\u8fd9\u65f6\u5019\u662f\u6211\u7684RabbitMQ \u7684\u53ef\u89c6\u5316\u63d2\u4ef6\u7684\u5165\u53e3&#xff0c;\u6253\u5f00\u4e91\u670d\u52a1\u5668\u4e4b\u540e\u7528\u6d4f\u89c8\u5668\u8bbf\u95ee 127.0.0.1:15672 \u5c31\u80fd\u8fdb\u53bb\u53ef\u89c6\u5316\u754c\u9762&#xff0c;\u4f46\u662f\u6211\u5e76\u6ca1\u6709\u7ed9\u6211\u7684\u4ee3\u7801\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/111790.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-01T13:33:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001133338-6abe61323cdd2.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111790.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/111790.html\",\"name\":\"RabbitMQ \u73af\u5883\u914d\u7f6e\u548c DirectRabbitConfig \u7684 SpringBoot 4.0.X \u7248\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-01T13:33:41+00:00\",\"dateModified\":\"2026-10-01T13:33:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/111790.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/111790.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111790.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RabbitMQ \u73af\u5883\u914d\u7f6e\u548c DirectRabbitConfig \u7684 SpringBoot 4.0.X \u7248\u672c\"}]},{\"@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":"RabbitMQ \u73af\u5883\u914d\u7f6e\u548c DirectRabbitConfig \u7684 SpringBoot 4.0.X \u7248\u672c - \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\/111790.html","og_locale":"zh_CN","og_type":"article","og_title":"RabbitMQ \u73af\u5883\u914d\u7f6e\u548c DirectRabbitConfig \u7684 SpringBoot 4.0.X \u7248\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001Rabbit MQ\u96a7\u9053\u7684\u521b\u5efa\u6211\u4e0d\u60f3\u8ba9\u5916\u9762\u7684\u7f51\u7edc\u8bbf\u95ee\u6211\u90fd\u4e91\u670d\u52a1\u5668&#xff0c;\u6211\u53ea\u8ba9\u6211\u672c\u673a\u6765\u8bbf\u95ee\u6211\u7684\u4e91\u670d\u52a1\u5668&#xff0c;\u4ec5\u9650\u6211\u672c\u5730\u6d4b\u8bd5&#xff0c;\u8fd8\u672a\u4e0a\u7ebf\u3002\u6211\u7ed9\u6211\u7684RabbitMQ \u8bbe\u7f6e\u4e86\u672c\u5730\u7684\u96a7\u9053&#xff0c;\u4f46\u662f\u53ea\u8bbe\u7f6e\u4e86\u7aef\u53e3\u53f7\u4e3a&#xff1a;15672 \u7684\u7aef\u53e3\u53f7&#xff0c;\u8fd9\u65f6\u5019\u662f\u6211\u7684RabbitMQ \u7684\u53ef\u89c6\u5316\u63d2\u4ef6\u7684\u5165\u53e3&#xff0c;\u6253\u5f00\u4e91\u670d\u52a1\u5668\u4e4b\u540e\u7528\u6d4f\u89c8\u5668\u8bbf\u95ee 127.0.0.1:15672 \u5c31\u80fd\u8fdb\u53bb\u53ef\u89c6\u5316\u754c\u9762&#xff0c;\u4f46\u662f\u6211\u5e76\u6ca1\u6709\u7ed9\u6211\u7684\u4ee3\u7801","og_url":"https:\/\/www.wsisp.com\/helps\/111790.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-01T13:33:41+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001133338-6abe61323cdd2.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/111790.html","url":"https:\/\/www.wsisp.com\/helps\/111790.html","name":"RabbitMQ \u73af\u5883\u914d\u7f6e\u548c DirectRabbitConfig \u7684 SpringBoot 4.0.X \u7248\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-01T13:33:41+00:00","dateModified":"2026-10-01T13:33:41+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/111790.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/111790.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/111790.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"RabbitMQ \u73af\u5883\u914d\u7f6e\u548c DirectRabbitConfig \u7684 SpringBoot 4.0.X \u7248\u672c"}]},{"@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\/111790","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=111790"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111790\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/111781"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=111790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=111790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=111790"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=111790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}