springboot rocketmq工具类
时间: 2023-10-12 19:01:40 浏览: 123
SpringBootDemo
引用中提到了在Spring Boot项目中设置RocketMQ的日志框架,可以通过在启动类中设置环境变量`rocketmq.client.logUseSlf4j`为`true`来明确指定使用Slf4j作为日志框架。同时,还需要引入相关的依赖,可以通过在`pom.xml`文件中添加以下代码来引入依赖:
```xml
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-spring-boot-starter</artifactId>
</dependency>
```
<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [SpringBoot整合RocketMQ,老鸟们都是这么玩的!](https://blog.csdn.net/jianzhang11/article/details/130073300)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文