rabbitmq-hello这个源码有问题,在启动后报异常,消费者无法接收到消息,channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue ‘hello’ in vhost ‘/‘, class-id=50, method-id=10)
您好,这个程序我刚才跑了一下,是ok的,可能是你的rabbitmq用法有问题。 2017-06-08 22:31:07.623 INFO 535092 --- [ main] com.didispace.HelloApplicationTests : Started HelloApplicationTests in 4.953 seconds (JVM running for 6.084) Sender : hello Thu Jun 08 22:31:07 CST 2017 2017-06-08 22:31:07.655 INFO 535092 --- [ Thread-1] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@1c93084c: startup date [Thu Jun 08 22:31:03 CST 2017]; root of context hierarchy 2017-06-08 22:31:07.657 INFO 535092 --- [ Thread-1] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483647 2017-06-08 22:31:07.661 INFO 535092 --- [ Thread-1] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. Receiver : hello Thu Jun 08 22:31:07 CST 2017 2017-06-08 22:31:07.676 INFO 535092 --- [ Thread-1] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
没有资源下载链接了…
读者朋友你好,你所提出的问题小编已转告本书的相关编辑,编辑近期会予以回复。
本书配套源代码下载地址:https://github.com/dyc87112/SpringCloudBook。
http://www.broadview.com.cn/file/resource/156068037128092138216067093045152155070245056104
@刘舫 404 NOT FOUND!
rabbitmq-hello这个源码有问题,在启动后报异常,消费者无法接收到消息,
channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue ‘hello’ in vhost ‘/‘, class-id=50, method-id=10)
没有资源下载链接了…