Kafka Infra Properties
@ConfigurationProperties(prefix = "spring.kafka" )
Type-safe configuration for the shared Kafka infrastructure.
Bound from spring.kafka.* in application.yml, mirroring the keys used by Spring Boot's own Kafka configuration so existing application-*.yml files remain compatible.
Replaces ad-hoc @Value("${spring.kafka.bootstrap-servers:...}") lookups and keeps the style consistent with MailProperties (mail-service) and SharedConfigProperties.
Constructors
Link copied to clipboard
constructor(bootstrapServers: String = "localhost:29092", schemaRegistryUrl: String = "http://localhost:8081", security: KafkaInfraProperties.Security = Security(), ssl: KafkaInfraProperties.Ssl = Ssl(), consumer: KafkaInfraProperties.Consumer = Consumer())
Types
Link copied to clipboard
data class Ssl(val trustStoreLocation: String = "", val trustStoreType: String = "PKCS12", val trustStorePassword: String = "")
TLS trust for the SSL listener. Scoped to the Kafka client on purpose: a global JVM truststore would break the services' public-TLS calls (Keycloak, Resend). Mirrors spring.kafka.ssl.* key names.