1 package de.juplo.kafka.outbox.delivery;
3 import org.springframework.boot.SpringApplication;
4 import org.springframework.boot.autoconfigure.SpringBootApplication;
5 import org.springframework.boot.context.properties.EnableConfigurationProperties;
6 import org.springframework.context.annotation.Bean;
7 import org.springframework.scheduling.annotation.EnableScheduling;
9 import java.time.Clock;
12 @SpringBootApplication
13 @EnableConfigurationProperties(ApplicationProperties.class)
15 public class Application
18 public OutboxProducer outboxProducer(
19 ApplicationProperties properties,
20 OutboxRepository repository)
22 return new OutboxProducer(properties, repository, Clock.systemDefaultZone());
26 public static void main(String[] args) throws Exception
28 SpringApplication.run(Application.class, args);