Spring AMQP 2.0.0.M3 发布了，包括一系列 bug 修复和一些新特性。
- Initial support for broker-less integration testing – the
TestRabbitTemplatediscovers listener containers in the application context and invokes those containers’ listeners for
sendAndReceive()operations. We intend to flush out this capability with more features before GA, including routing, and simulation of the various exchange types supported by RabbitMQ. Feedback is welcome.
- Rollback with an external transaction manager is now consistent with local transactions.
- The 4.1.x
amqp-clientlibrary is now the default.
RabbitTemplatenow has an
invoke()method which allows multiple operations to be performed sequentially on the same channel. This also enables features such as
waitForConfirmsOrDie()provided by the underlying library, when sending multiple messages to the same channel.
nullmessage properties are no longer included in
toString()which makes debug logs easier to read.
@QueueBindingannotations now support multiple routing keys, and support custom exchange types.