This is an automated email from the ASF dual-hosted git repository.
dinglei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-spring.git
The following commit(s) were added to refs/heads/master by this push:
new 1f76b80 [ISSUE #67]Fix typo in example readme file (#73)
1f76b80 is described below
commit 1f76b80191f3f70b8e966f8ecf1be64b3a2c0ceb
Author: dinglei <[email protected]>
AuthorDate: Sat May 25 08:24:56 2019 +0800
[ISSUE #67]Fix typo in example readme file (#73)
---
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 5d51333..f8edadc 100644
--- a/README.md
+++ b/README.md
@@ -121,10 +121,10 @@ public class ProducerApplication implements
CommandLineRunner{
public void run(String... args) throws Exception {
try {
// Build a SpringMessage for sending in transaction
- Message msg = MessageBuilder.withPayload(..)...
+ Message msg = MessageBuilder.withPayload(..)...;
// In sendMessageInTransaction(), the first parameter transaction
name ("test")
// must be same with the @RocketMQTransactionListener's member
field 'transName'
- rocketMQTemplate.sendMessageInTransaction("test", "test-topic"
msg, null);
+ rocketMQTemplate.sendMessageInTransaction("test", "test-topic",
msg, null);
} catch (MQClientException e) {
e.printStackTrace(System.out);
}
@@ -385,7 +385,7 @@ public class MyConsumer implements RocketMQListener<String>
{
// Step2. Use the extra RocketMQTemplate. e.g.
@Resource(name = "extRocketMQTemplate") // Must define the name to qualify
to extra-defined RocketMQTemplate bean.
- private RocketMQTemplate extRocketMQTemplate;
+ private RocketMQTemplate extRocketMQTemplate;
// you can use the template as normal.
```