测试案例测试
- 1.启动服务
- 2.发送消息测试
- 2.1 发送简单的字符串
- 2.2 发送对象消息
- 2.3 发送事务消息
- 2.4 手动拉取消息
1.启动服务
- 启动 2 个服务:
- rocketmq-produce-example
- rocketmq-consumer-example

2.发送消息测试
2.1 发送简单的字符串
- http://localhost:28081/send/simple?msg=RocketMQ


本文详细介绍了RocketMQ消息发送的完整测试案例,包括启动服务、发送简单字符串消息、发送对象消息、发送事务消息以及手动拉取消息等核心步骤,并提供了具体的代码示例和操作截图,帮助开发者快速掌握RocketMQ消息发送实践。


