Advanced Listener Container Configuration
要设置未公开为 Binder 或绑定属性的侦听器容器属性,请向应用程序上下文添加类型为 ListenerContainerCustomizer
的单个 Bean。将设置 Binder 和绑定属性,然后将调用自定义器。自定义器(configure()
方法)会提供队列名称以及消费者组作为参数。
To set listener container properties that are not exposed as binder or binding properties, add a single bean of type ListenerContainerCustomizer
to the application context.
The binder and binding properties will be set and then the customizer will be called.
The customizer (configure()
method) is provided with the queue name as well as the consumer group as arguments.