摘要: 阅读全文
posted @ 2021-04-08 19:24 余生请多指教ANT 阅读(158) 评论(0) 推荐(0) 编辑
摘要: SpringGateAway: 先进行鉴权,然后进行路由,日志什么等等 阅读全文
posted @ 2021-04-08 17:44 余生请多指教ANT 阅读(158) 评论(0) 推荐(0) 编辑
摘要: /** * 重复消费逻辑判断与处理 */ @Component public class RepeatMqConsumer { /** * 服务对象 */ private int count=1; @Autowired private DispatcherService dispatcherServ 阅读全文
posted @ 2021-04-08 10:20 余生请多指教ANT 阅读(537) 评论(0) 推荐(0) 编辑
摘要: #手动应答 #spring.rabbitmq.listener.simple.acknowledge-mode=manual #spring.rabbitmq.listener.simple.acknowledge-mode=none #不发生异常才应答 #spring.rabbitmq.liste 阅读全文
posted @ 2021-04-08 09:55 余生请多指教ANT 阅读(478) 评论(0) 推荐(0) 编辑
摘要: //备份队列 @Bean("alternate_queue") public Queue alternate_queue() { return new Queue("alternate_queue", true); } //备份交换机 @Bean("alternate_exchange") publ 阅读全文
posted @ 2021-04-08 09:44 余生请多指教ANT 阅读(101) 评论(0) 推荐(0) 编辑
摘要: @Bean public RabbitTemplate rabbitTemplate(CachingConnectionFactory factory) { //若使用confirm-callback ,必须要配置publisherConfirms 为true factory.setpublishe 阅读全文
posted @ 2021-04-08 08:12 余生请多指教ANT 阅读(564) 评论(0) 推荐(0) 编辑