set up Kafka

This commit is contained in:
2025-08-05 10:32:17 +02:00
parent fae242b7b9
commit 00ac2a2a1f
3 changed files with 15 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ dependencies {
implementation(hlaeja.library.common.messages) implementation(hlaeja.library.common.messages)
implementation(hlaeja.library.jwt) implementation(hlaeja.library.jwt)
implementation(hlaeja.projectreactor.kotlin.reactor.extensions) implementation(hlaeja.projectreactor.kotlin.reactor.extensions)
implementation(hlaeja.springboot.kafka)
implementation(hlaeja.springboot.redis.session) implementation(hlaeja.springboot.redis.session)
implementation(hlaeja.springboot.starter.actuator) implementation(hlaeja.springboot.starter.actuator)
implementation(hlaeja.springboot.starter.redis) implementation(hlaeja.springboot.starter.redis)
@@ -29,6 +30,7 @@ dependencies {
testImplementation(hlaeja.kotlin.test.junit5) testImplementation(hlaeja.kotlin.test.junit5)
testImplementation(hlaeja.mockk) testImplementation(hlaeja.mockk)
testImplementation(hlaeja.projectreactor.reactor.test) testImplementation(hlaeja.projectreactor.reactor.test)
testImplementation(hlaeja.springboot.kafka.test)
testImplementation(hlaeja.springboot.starter.test) testImplementation(hlaeja.springboot.starter.test)
testRuntimeOnly(hlaeja.junit.platform.launcher) testRuntimeOnly(hlaeja.junit.platform.launcher)

View File

@@ -17,6 +17,13 @@ spring:
redis: redis:
port: 6379 port: 6379
database: 2 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: server:
error: error:
@@ -63,6 +70,8 @@ spring:
data: data:
redis: redis:
host: localhost host: localhost
kafka:
bootstrap-servers: localhost:9091
server: server:
error: error:
@@ -89,6 +98,8 @@ spring:
data: data:
redis: redis:
host: Redis host: Redis
kafka:
bootstrap-servers: kafka:9092
server: server:
error: error:

View File

@@ -7,7 +7,7 @@
<root level="INFO"> <root level="INFO">
<appender-ref ref="STDOUT"/> <appender-ref ref="STDOUT"/>
</root> </root>
<springProfile name="develop|docker"> <springProfile name="development|docker">
<logger level="DEBUG" name="ltd.hlaeja"/> <logger level="TRACE" name="ltd.hlaeja"/>
</springProfile> </springProfile>
</configuration> </configuration>