-
需创建复合项目
-
父工程 Maven 依赖:
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.0.RELEASE</version> </parent> <!-- 父工程要打成 pom 包--> <groupId>com.qcby</groupId> <artifactId>springboot-rabbitmq</artifactId> <packaging>pom</packaging> <modules> <module>producer</module> <module>sms-consumer</module> </modules> <version>1.0-SNAPSHOT</version> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <!-- springboot-web组件 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!-- 添加springboot对amqp的支持 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> <dependency> <groupId>org.apache.comm
RabbitMQ深度探索:SpringBoot 整合 RabbitMQ
最新推荐文章于 2025-05-07 11:32:00 发布