无法使用带有 Spring boot JmsTemplate 的 AMQP 发送消息

Unable to send messages using AMQP with Spring boot JmsTemplate

我正在尝试使用 Spring 引导的 JmsTemplate 发送消息。 我通过属性使用自动配置来配置所有内容。 这些是我设置的属性:

当我将 broker-url 配置为 tcp://localhost:61616 时,我已经能够按预期工作,但是每当我将其更改为 amqp://localhost:5672 时,我得到错误: 连接到 [amqp://localhost:5672] 失败:10 次尝试继续重试。

对于我正在从事的项目,我应该使用 AMQP。

有什么想法吗? 提前致谢!

Boot 对 activemq 的支持仅为 JMS。

Spring 根本不支持 AMQP 1.0; RabbitMQ 只有 0.9.1。