![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
消息队列
QQ:3083155908
只有更好,没有最好
展开
-
消息队列处理微信支付超时订单
1.配置交换机、队列 RabbitMqConfig /** * * 延时队列交换机 * * 注意这里的交换机类型:CustomExchange * * * * @return * */ @Bean public CustomExchange delayExchange() { Map<String, Object> args = new HashMap<>(); args.put("x-del...原创 2020-11-09 15:06:17 · 1234 阅读 · 1 评论 -
rabbitMQ入门程序
1.生产者 /** * rabbitMQ入门程序消费者 * * @author xiaoss * @date 2020年10月27日 22:02 */ public class Producer01 { //队列 private static final String QUEUE="helloworld_01"; public static void main(String[] args) { //通过连接工厂创建新的连接和mq建立连接 .原创 2020-10-28 00:18:28 · 254 阅读 · 0 评论