Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/308.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Spring引导和RabbitMQ:未能连接到reactor.io.net.impl.netty.tcp.NettyTcpClient_Java_Spring_Websocket_Rabbitmq_Broker - Fatal编程技术网

Java Spring引导和RabbitMQ:未能连接到reactor.io.net.impl.netty.tcp.NettyTcpClient

Java Spring引导和RabbitMQ:未能连接到reactor.io.net.impl.netty.tcp.NettyTcpClient,java,spring,websocket,rabbitmq,broker,Java,Spring,Websocket,Rabbitmq,Broker,我已按如下方式设置了spring boot应用程序: application.properties: WebSocketConfig.java: RabbiMQ配置:安装在Windows 7上 Protocol Bound to Port amqp 127.0.0.1 5672 clustering :: 25672 http 0.0.0.0 15672 http :: 15672 启动应

我已按如下方式设置了spring boot应用程序:

application.properties:

WebSocketConfig.java:

RabbiMQ配置:安装在Windows 7上

Protocol    Bound to    Port
amqp        127.0.0.1   5672
clustering  ::          25672
http        0.0.0.0     15672
http        ::          15672
启动应用程序时,我收到以下错误:

Failed to connect to reactor.io.net.impl.netty.tcp.NettyTcpClient
即使我在配置类中设置了属性,也会发生这种情况

有什么想法吗


谢谢

您需要使用以下方法在RabbitMQ上启用stomp broker:

rabbitmq-plugins enable rabbitmq_stomp

另外,STOMP的端口是61613,而不是5672。

您需要使用以下命令在RabbitMQ上启用STOMP代理:

rabbitmq-plugins enable rabbitmq_stomp

此外,STOMP的端口是61613,而不是5672。

拯救了我们的一天/生命/etc拯救了我们的一天/生命/etc
rabbitmq-plugins enable rabbitmq_stomp