Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

master分支中demo代码与文档内容不一致 #28

Open
lzk416 opened this issue Sep 8, 2021 · 0 comments
Open

master分支中demo代码与文档内容不一致 #28

lzk416 opened this issue Sep 8, 2021 · 0 comments

Comments

@lzk416
Copy link

lzk416 commented Sep 8, 2021

1.与文档内容不一致(建议改成一致,可能对新手来说是致命打击)

  • 在文档中是
<messageQueue>
	<consumer groupName="test1sub">
		<topics>
			<topic name="test1" receiverType="com.ppdai.infrastructure.demo.TestSub"></topic>
			<topic name="test4" receiverType="com.ppdai.infrastructure.demo.TestSub"></topic>
		</topics>
	</consumer>
</messageQueue>
  • 在代码中是
<messageQueue>
	<consumer groupName="testClusterSub">
		<topics>
			<topic name="test1" receiverType="com.ppdai.infrastructure.demo.TestSub"></topic>
		</topics>
	</consumer>
	<consumer groupName="testBroadcastSub">
		<topics>
			<topic name="test1" receiverType="com.ppdai.infrastructure.demo.TestSub"></topic>
		</topics>
	</consumer>
</messageQueue>

2.消息发送的条数有问题

  • 在demo的TestController类中第22行for(int i=1;i<count;i++),这里从1开始,导致实际发送10条,但是在admin上只能看到9条,建议从0开始
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant