Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
springboot-demo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Leona
W
web
backend
springboot-demo
Commits
8ce3007a
Commit
8ce3007a
authored
Oct 23, 2019
by
duanledexianxianxian
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync
parent
63926d58
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
kafka/src/main/java/com/duanledexianxianxian/demo/kafka/consumer/TestConsumer.java
...uanledexianxianxian/demo/kafka/consumer/TestConsumer.java
+2
-2
No files found.
kafka/src/main/java/com/duanledexianxianxian/demo/kafka/consumer/TestConsumer.java
View file @
8ce3007a
...
...
@@ -10,7 +10,7 @@ import org.springframework.stereotype.Component;
* @author fengyuchenglun
* @version 1.0.0
*/
//
@Component
@Component
public
class
TestConsumer
{
/**
...
...
@@ -19,7 +19,7 @@ public class TestConsumer {
* @param record the record
* @throws Exception the exception
*/
@KafkaListener
(
topics
=
"topic_
first
"
)
@KafkaListener
(
topics
=
"topic_
second
"
)
public
void
listen
(
ConsumerRecord
<?,
?>
record
)
throws
Exception
{
System
.
out
.
printf
(
"topic = %s, offset = %d, value = %s \n"
,
record
.
topic
(),
record
.
offset
(),
record
.
value
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment