Compare commits

...
3 Commits
Author SHA1 Message Date
wonder 1d4fa82fe7 📝Docs: 更新任务清单 2025-10-14 21:04:32 +08:00
wonder b1eb8e11c2 🔄Update: 添加RabbitMQ配置 2025-10-14 21:02:45 +08:00
wonder d072522937 🔄Update: 添加起步依赖 2025-10-14 20:55:04 +08:00
3 changed files with 63 additions and 17 deletions
+2 -2
View File
@@ -3,8 +3,8 @@
🦒 RabbitMQ 消息队列项目模板
| 序号 | 任务 | 内容 | 是否完成 | 备注 |
|------|----------|----------|----------|------|
| 1 | Spring Boot 3 集成 RabbitMQ | 添加 `spring-boot-starter-amqp` 依赖,配置 `application.yml` 或 `application.properties` | | |
|------|----------|----------|------|------|
| 1 | Spring Boot 3 集成 RabbitMQ | 添加 `spring-boot-starter-amqp` 依赖,配置 `application.yml` 或 `application.properties` |✅ | |
| 2 | 实现简单消息发送与接收 | 编写生产者发送消息,消费者监听队列接收消息,测试流程 | | |
| 3 | 理解 RabbitMQ 交换机类型 | 学习 direct、fanout、topic、headers 交换机类型,实现不同类型的消息路由 | | |
| 4 | 消息持久化 | 配置队列和消息的持久化,测试 RabbitMQ 重启后消息是否保留 | | |
+35
View File
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!-- 基本信息配置 -->
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.2</version>
</parent>
<groupId>cn.hezhaohui</groupId>
<artifactId>rabbitmq-template</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<!-- 属性配置 -->
<properties>
<java.version>21</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
</dependencies>
</project>
+11
View File
@@ -0,0 +1,11 @@
server:
port: 8081
spring:
application:
name: rabbitmq-template
rabbitmq:
host: localhost
port: 5672
username: wonder
password: Dn293830
virtual-host: /template