投递任务执行第一次后就彻底停止了……求老师解答!
故意把交换机名称写错,以利用定时任务多次投递,可是投递第一次失败后整个程序就停止了……
日志如下:
2019-04-28 14:37:25.840 ERROR 17428 --- [168.53.187:5672] o.s.a.r.c.CachingConnectionFactory : Channel shutdown: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no exchange 'Order-Exchang' in vhost '/', class-id=60, method-id=40)
2019-04-28 14:37:25.853 INFO 17428 --- [ Thread-2] o.s.w.c.s.GenericWebApplicationContext : Closing org.springframework.web.context.support.GenericWebApplicationContext@6e9175d8: startup date [Sun Apr 28 14:37:14 CST 2019]; root of context hierarchy
2019-04-28 14:37:25.857 INFO 17428 --- [ Thread-2] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 2147483647
2019-04-28 14:37:25.858 INFO 17428 --- [ Thread-2] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0