今天写一个测试类测试RabbitMQ出现报错3次分别如下:
- com.rabbitmq.client.ShutdownSignalException: connection error
这个错误时因为RabbitMQ的代码端连接端口是5672而我写成了15672所以连接错误。 - com.rabbitmq.client.impl.ForgivingExceptionHandler.log:119 -An unexpected connection driver error occured
java.net.SocketException: socket closed
这个错误时因为没有给当前用户开启读写权限,所以报错了,开启方法见下面的连接:开启方法 - Illegal character: U+3000 site:blog.csdn.net
这是在网上复制的代码到idea中一直报错,后来在网上查是因为代码中有全角空格,删除就好了。