[英]Update Rabbitmq exchange type when using spring integration
I currently have a defined rabbitmq exchange in my spring xml that is a fanout. 我目前在spring xml中有一个定义的Rabbitmq交换,它是一个扇出。 I want to change it to a direct but when i deploy my new project the exchange is not updated.
我想将其更改为直接方式,但是当我部署新项目时,交换不会更新。 I see spring tries to create but fails.
我看到spring尝试创建但失败了。
Is there an override I am missing? 我是否缺少覆盖?
It cannot be done; 无法做到; you can't change an exchange type after it is created.
创建交换类型后,您将无法更改它。
You have to delete it and recreate. 您必须删除它并重新创建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.