第四章 ActiveMQ 与 SpringBoot 集成
4-1 ActiveMQ 与 SpringBoot 集成集成配置
1、加载 spring boot 的 activeMQ 的依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-activemq</artifactId>
</dependency>
2、编写一个消息发送者
@Component
public class MessageSender {

最低0.47元/天 解锁文章
385

被折叠的 条评论
为什么被折叠?



