Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
warehouse-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
warehouse-management
Commits
6b1668b0
Commit
6b1668b0
authored
May 05, 2021
by
Philippe Fonzin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
produce and consume from kafka
parent
e7ef42e4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Consumer.java
src/main/java/com/ascendfinalproject/warehouse/Consumer.java
+1
-1
application.properties
src/main/resources/application.properties
+2
-1
No files found.
src/main/java/com/ascendfinalproject/warehouse/Consumer.java
View file @
6b1668b0
...
@@ -10,7 +10,7 @@ import java.io.IOException;
...
@@ -10,7 +10,7 @@ import java.io.IOException;
@Service
@Service
public
class
Consumer
{
public
class
Consumer
{
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
Produc
er
.
class
);
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
Consum
er
.
class
);
// this is placeholder
// this is placeholder
@KafkaListener
(
topics
=
"fulfilled"
,
groupId
=
"WAREHOUSE_MANAGEMENT"
)
@KafkaListener
(
topics
=
"fulfilled"
,
groupId
=
"WAREHOUSE_MANAGEMENT"
)
...
...
src/main/resources/application.properties
View file @
6b1668b0
spring.data.mongodb.uri
=
mongodb+srv://warehouse1:ascendWarehouseProject@warehouse-cluster.xopll.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
spring.data.mongodb.uri
=
mongodb+srv://warehouse1:ascendWarehouseProject@warehouse-cluster.xopll.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
spring.data.mongodb.database
=
test
spring.data.mongodb.database
=
test
server
:
port: 9000
server
:
port
:
9000
spring
:
spring
:
kafka
:
kafka
:
consumer
:
consumer
:
...
...
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