随笔分类 -  RabbitMQ

摘要:生产者 package org.example.topic; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFactory 阅读全文
posted @ 2022-11-20 11:26 xl4ng 阅读(79) 评论(0) 推荐(0) 编辑
摘要:生产者 package org.example.routing; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFacto 阅读全文
posted @ 2022-11-20 11:23 xl4ng 阅读(29) 评论(0) 推荐(0) 编辑
摘要:生产者 package org.example.pubsub; import com.rabbitmq.client.BuiltinExchangeType; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connect 阅读全文
posted @ 2022-11-20 11:19 xl4ng 阅读(93) 评论(0) 推荐(0) 编辑
摘要:生产者 package org.example.workqueue; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFac 阅读全文
posted @ 2022-11-20 11:10 xl4ng 阅读(23) 评论(0) 推荐(0) 编辑
摘要:生产者 package org.example.helloworld; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFa 阅读全文
posted @ 2022-11-20 11:08 xl4ng 阅读(63) 评论(0) 推荐(0) 编辑
摘要:1.引入依赖 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> <depend 阅读全文
posted @ 2020-11-21 22:36 xl4ng 阅读(175) 评论(0) 推荐(0) 编辑
摘要:public class Customer { public static void main(String[] args) throws IOException, TimeoutException { //创建链接mq的连接工厂对象 ConnectionFactory connectionFact 阅读全文
posted @ 2020-11-21 09:11 xl4ng 阅读(93) 评论(0) 推荐(0) 编辑
摘要:引入依赖 <dependencies> <dependency> <groupId>com.rabbitmq</groupId> <artifactId>amqp-client</artifactId> <version>5.10.0</version> </dependency> <depende 阅读全文
posted @ 2020-11-18 23:09 xl4ng 阅读(89) 评论(0) 推荐(0) 编辑
摘要:1. 执行docker search rabbitMq搜索镜像 2. 执行docker pull rabbitMq:3.8.3-management 拉取3.8.3-management版本(带有web页面的)的rabbitMq镜像 3. 执行docker images查看所有镜像 4. 执行doc 阅读全文
posted @ 2020-11-18 22:30 xl4ng 阅读(414) 评论(0) 推荐(0) 编辑