您可以覆盖默认的运行状况指示器Bean以使用未启用重试的模板…
@Configurationpublic class MyRabbitHealthIndicatorOverride extends CompositeHealthIndicatorConfiguration<RabbitHealthIndicator, RabbitTemplate> { @Bean public HealthIndicator rabbitHealthIndicator(ConnectionFactory connectionFactory) { return createHealthIndicator(new RabbitTemplate(connectionFactory)); }}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)