What’s New
Changes in 3.1 Since 3.0
Java 17, Spring Framework 6.1
此版本需要 Spring Framework 6.1 和 Java 17。
This version requires Spring Framework 6.1 and Java 17.
Exclusive Consumer Logging
报告因独占消费者导致拒绝访问的日志消息现已默认记录在 DEBUG 级别。仍然可以通过在监听器容器和连接工厂分别设置 exclusiveConsumerExceptionLogger`和 `closeExceptionLogger`属性来配置您自己的日志行为。此外,遇到此类异常后 `SimpleMessageListenerContainer`的消费者重启现已默认记录在 DEBUG 级别(以前为 INFO)。已将新方法 `logRestart()
添加到 ConditionalExceptionLogger
中,以允许进行此更改。有关详细信息,请参见 Consumer Events 和 [channel-close-logging]。
Log messages reporting access refusal due to exclusive consumers are now logged at DEBUG level by default.
It remains possible to configure your own logging behavior by setting the exclusiveConsumerExceptionLogger
and closeExceptionLogger
properties on the listener container and connection factory respectively.
In addition, the SimpleMessageListenerContainer
consumer restart after such an exception is now logged at DEBUG level by default (previously INFO).
A new method logRestart()
has been added to the ConditionalExceptionLogger
to allow this to be changed.
See Consumer Events and [channel-close-logging] for more information.
Connections Enhancement
创建连接信道时,连接工厂支持回退策略。有关详细信息,请参见 Choosing a Connection Factory。
Connection Factory supported backoff policy when creating connection channel. See Choosing a Connection Factory for more information.