Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-smart-device-kafka-consumer
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 8384cfe4
authored
Apr 21, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]kafka消费数据修改
1 parent
a874b326
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
src/main/resources/config/smart-device-consumer-config.xml
src/main/resources/config/smart-device-kafka-consumer.xml
src/main/resources/config/smart-device-consumer-config.xml
View file @
8384cfe
...
@@ -35,10 +35,28 @@
...
@@ -35,10 +35,28 @@
</props>
</props>
</property>
</property>
</bean>
</bean>
<bean
id=
"consumerPropertiesnew"
class=
"org.springframework.beans.factory.config.PropertiesFactoryBean"
>
<property
name=
"properties"
>
<props>
<prop
key=
"zookeeper.connect"
>
${assign.zookeeper.connect.newnew}
</prop>
<prop
key=
"zookeeper.connection.timeout.ms"
>
${assign.zookeeper.connect.timeout.ms}
</prop>
<prop
key=
"zookeeper.session.timeout.ms"
>
${assign.zookeeper.session.timeout.ms}
</prop>
<prop
key=
"group.id"
>
${assign.group.id}
</prop>
<prop
key=
"auto.commit.interval.ms"
>
${auto.commit.interval.ms}
</prop>
<prop
key=
"auto.offset.reset"
>
${auto.offset.reset}
</prop>
<prop
key=
"rebalance.backoff.ms"
>
${assign.rebalance.backoff.ms}
</prop>
<prop
key=
"rebalance.max.retries"
>
${assign.rebalance.max.retries}
</prop>
</props>
</property>
</bean>
<bean
id=
"consumerConfig"
class=
"kafka.consumer.ConsumerConfig"
>
<bean
id=
"consumerConfig"
class=
"kafka.consumer.ConsumerConfig"
>
<constructor-arg
index=
"0"
ref=
"consumerProperties"
/>
<constructor-arg
index=
"0"
ref=
"consumerProperties"
/>
</bean>
</bean>
<bean
id=
"consumerConfigOld"
class=
"kafka.consumer.ConsumerConfig"
>
<bean
id=
"consumerConfigOld"
class=
"kafka.consumer.ConsumerConfig"
>
<constructor-arg
index=
"0"
ref=
"consumerPropertiesOld"
/>
<constructor-arg
index=
"0"
ref=
"consumerPropertiesOld"
/>
</bean>
</bean>
<bean
id=
"consumerConfignew"
class=
"kafka.consumer.ConsumerConfig"
>
<constructor-arg
index=
"0"
ref=
"consumerPropertiesnew"
/>
</bean>
</beans>
</beans>
\ No newline at end of file
\ No newline at end of file
src/main/resources/config/smart-device-kafka-consumer.xml
View file @
8384cfe
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<bean
id=
"orderIssueConsumer"
class=
"cn.com.glsx.smart.queue.OrderIssueConsumer"
<bean
id=
"orderIssueConsumer"
class=
"cn.com.glsx.smart.queue.OrderIssueConsumer"
init-method=
"init"
destroy-method=
"destroy"
>
init-method=
"init"
destroy-method=
"destroy"
>
<property
name=
"consumerConfig"
ref=
"consumer
Config
"
/>
<property
name=
"consumerConfig"
ref=
"consumer
Propertiesnew
"
/>
<property
name=
"topic"
value=
"${topic.orderIssueConsumer}"
/>
<property
name=
"topic"
value=
"${topic.orderIssueConsumer}"
/>
<property
name=
"nThreads"
value=
"${consumer.nThreads}"
/>
<property
name=
"nThreads"
value=
"${consumer.nThreads}"
/>
</bean>
</bean>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<bean
id=
"leaveHomeFlagConsumer"
class=
"cn.com.glsx.smart.queue.LeaveHomeFlagConsumer"
<bean
id=
"leaveHomeFlagConsumer"
class=
"cn.com.glsx.smart.queue.LeaveHomeFlagConsumer"
init-method=
"init"
destroy-method=
"destroy"
>
init-method=
"init"
destroy-method=
"destroy"
>
<property
name=
"consumerConfig"
ref=
"consumer
PropertiesOld
"
/>
<property
name=
"consumerConfig"
ref=
"consumer
Config
"
/>
<property
name=
"topic"
value=
"${topic.leaveHomeFlagConsumer}"
/>
<property
name=
"topic"
value=
"${topic.leaveHomeFlagConsumer}"
/>
<property
name=
"nThreads"
value=
"${consumer.nThreads}"
/>
<property
name=
"nThreads"
value=
"${consumer.nThreads}"
/>
</bean>
</bean>
...
...
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