添加自定义客户端连接属性

CachingConnectionFactory现在允许您访问底层连接工厂以允许,例如,设置自定义客户端属性。以下示例显示了如何执行此作:spring-doc.cadn.net.cn

connectionFactory.getRabbitConnectionFactory().getClientProperties().put("thing1", "thing2");

查看连接时,这些属性会显示在 RabbitMQ 管理 UI 中。spring-doc.cadn.net.cn