Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 33db3e4

Browse files
增加描述信息
1 parent 5469740 commit 33db3e4

File tree

1 file changed

+34
-1
lines changed
  • APIJSON-Java-Server/APIJSONDemo-MultiDataSource-Kafka

1 file changed

+34
-1
lines changed

‎APIJSON-Java-Server/APIJSONDemo-MultiDataSource-Kafka/README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,38 @@
99
Access表名 = 消息队列 topic
1010

1111
Access表配置说明:
12+
![image](https://user-images.githubusercontent.com/12228225/210956299-204115a7-433c-4f18-af27-5120068dab2e.png)
13+
Request表配置post权限
14+
![image](https://user-images.githubusercontent.com/12228225/210956378-be095589-0ced-4317-bb46-6b296538f26e.png)
1215

13-
![image-20230106155124881](/Users/xy/Library/Application Support/typora-user-images/image-20230106155124881.png)
16+
apijson发送mq消息:
17+
单条
18+
{
19+
"@datasource": "kafka",
20+
"Topic_User":{
21+
"message":"test-101"
22+
},
23+
"tag": "Topic_User",
24+
"@explain": false
25+
}
26+
多条
27+
{
28+
"Topic_User[]": [
29+
{
30+
"message":"test-100"
31+
},
32+
{
33+
"message":"test-101"
34+
}
35+
],
36+
"tag": "Topic_User[]",
37+
"@datasource": "kafka",
38+
"@explain": true
39+
}
40+
41+
客户端接收消息:
42+
offset = 47, key = null, value = test-101
43+
offset = 48, key = null, value = test-100
44+
offset = 49, key = null, value = test-101
45+
46+
用java代码方式,获取具体数据源,调用即可

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /