package de.juplo.kafka.payment.transfer;
-import de.trion.microservices.avro.Order;
-import io.confluent.kafka.streams.serdes.avro.SpecificAvroSerializer;
import java.util.Properties;
import java.util.UUID;
+
+import de.juplo.kafka.payment.avro.Order;
+import io.confluent.kafka.streams.serdes.avro.SpecificAvroSerializer;
+import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.common.serialization.UUIDSerializer;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
@SpringBootApplication
@EnableConfigurationProperties(TransferServiceProperties.class)
+@Slf4j
public class TransferServiceApplication
{
- private final static Logger LOG = LoggerFactory.getLogger(TransferServiceApplication.class);
-
-
@Bean(destroyMethod = "close")
- KafkaProducer<UUID,Order> producer(TransferServiceProperties properties)
+ KafkaProducer<UUID, Order> producer(TransferServiceProperties properties)
{
Properties props = new Properties();
props.put("bootstrap.servers", properties.bootstrapServers);