BAEL-3435 - Improve article "Guide to Spring Cloud Stream with Kafka, Apache Avro and Confluent Schema Registry" (#11998)

This commit is contained in:
ACHRAF TAITAI 2022-04-04 20:48:45 +02:00 committed by GitHub
parent dbbc6a6a1d
commit f8a69008e1

View File

@ -4,11 +4,11 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding; import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.messaging.Processor; import org.springframework.cloud.stream.messaging.Processor;
import org.springframework.cloud.stream.schema.client.EnableSchemaRegistryClient;
@SpringBootApplication @SpringBootApplication
@EnableBinding(Processor.class) @EnableBinding(Processor.class)
@EnableSchemaRegistryClient // The @EnableSchemaRegistryClient annotation needs to be uncommented to use the Spring native method.
// @EnableSchemaRegistryClient
public class AvroKafkaApplication { public class AvroKafkaApplication {
public static void main(String[] args) { public static void main(String[] args) {