Skip to content

KafkaProducerConfig and KafkaProducerConfig are not needed with Spring Boot #254

@lackovic

Description

@lackovic

Hello, while reading this article I noticed you are declaring KafkaProducerConfig and KafkaConsumerConfig classes.

These classes are not necessary for a Spring Boot application: Spring Boot – unlike Spring – comes with simplified Apache Kafka support by providing auto-configuration, meaning that Kafka configuration is controlled by external configuration properties in spring.kafka.* and does not require to add any Java code.

See the official documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions