diff --git a/build.gradle.kts b/build.gradle.kts
index f9c87c4..20022a0 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -16,6 +16,7 @@ dependencies {
implementation(hlaeja.library.common.messages)
implementation(hlaeja.library.jwt)
implementation(hlaeja.projectreactor.kotlin.reactor.extensions)
+ implementation(hlaeja.springboot.kafka)
implementation(hlaeja.springboot.redis.session)
implementation(hlaeja.springboot.starter.actuator)
implementation(hlaeja.springboot.starter.redis)
@@ -29,6 +30,7 @@ dependencies {
testImplementation(hlaeja.kotlin.test.junit5)
testImplementation(hlaeja.mockk)
testImplementation(hlaeja.projectreactor.reactor.test)
+ testImplementation(hlaeja.springboot.kafka.test)
testImplementation(hlaeja.springboot.starter.test)
testRuntimeOnly(hlaeja.junit.platform.launcher)
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 869c180..148fabb 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -17,6 +17,13 @@ spring:
redis:
port: 6379
database: 2
+ kafka:
+ consumer:
+ group-id: management-ui
+ auto-offset-reset: latest
+ value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer
+ properties:
+ spring.json.trusted.packages: "ltd.hlaeja.library.accountRegistry.event"
server:
error:
@@ -63,6 +70,8 @@ spring:
data:
redis:
host: localhost
+ kafka:
+ bootstrap-servers: localhost:9091
server:
error:
@@ -89,6 +98,8 @@ spring:
data:
redis:
host: Redis
+ kafka:
+ bootstrap-servers: kafka:9092
server:
error:
diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml
index a11bbe7..0904faa 100644
--- a/src/main/resources/logback-spring.xml
+++ b/src/main/resources/logback-spring.xml
@@ -7,7 +7,7 @@
-
-
+
+