Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-opsdoc
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4dfd6b40
authored
Sep 19, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改配置
1 parent
89fa37a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
1.11.0_九月/1.11.0配置中心配置.md
1.11.0_九月/1.11.0配置中心配置.md
View file @
4dfd6b4
...
@@ -336,7 +336,7 @@ spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.Str
...
@@ -336,7 +336,7 @@ spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.Str
#=============== consumer =======================
#=============== consumer =======================
spring.kafka.consumer.bootstrap-
servers
=
192.168.3.145:9095
spring.kafka.consumer.bootstrap-
servers
=
192.168.3.145:9095
# 指定默认消费者group id --> 由于在kafka中,同一组中的consumer不会读取到同一个消息,依靠groud.id设置组名
# 指定默认消费者group id --> 由于在kafka中,同一组中的consumer不会读取到同一个消息,依靠groud.id设置组名
spring.kafka.consumer.group-
id
=
testGroup
spring.kafka.consumer.group-
id
=
ne-shield-notifycenter-test
# smallest和largest才有效,如果smallest重新0开始读取,如果是largest从logfile的offset读取。一般情况下我们都是设置smallest
# smallest和largest才有效,如果smallest重新0开始读取,如果是largest从logfile的offset读取。一般情况下我们都是设置smallest
spring.kafka.consumer.auto-offset-
reset
=
latest
spring.kafka.consumer.auto-offset-
reset
=
latest
# enable.auto.commit:true --> 设置自动提交offset
# enable.auto.commit:true --> 设置自动提交offset
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment