From c271e58a354a2e8c12edc30a7882eadc193f92c2 Mon Sep 17 00:00:00 2001 From: bgehrels Date: Fri, 10 Aug 2018 14:56:57 +0200 Subject: [PATCH] Fix #92 - Submission to Nakadi does not work without @EnableScheduling --- .../zalando/nakadiproducer/NakadiProducerAutoConfiguration.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nakadi-producer-spring-boot-starter/src/main/java/org/zalando/nakadiproducer/NakadiProducerAutoConfiguration.java b/nakadi-producer-spring-boot-starter/src/main/java/org/zalando/nakadiproducer/NakadiProducerAutoConfiguration.java index 0ad70345..87af2c5f 100644 --- a/nakadi-producer-spring-boot-starter/src/main/java/org/zalando/nakadiproducer/NakadiProducerAutoConfiguration.java +++ b/nakadi-producer-spring-boot-starter/src/main/java/org/zalando/nakadiproducer/NakadiProducerAutoConfiguration.java @@ -18,6 +18,7 @@ import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; +import org.springframework.scheduling.annotation.EnableScheduling; import org.zalando.fahrschein.NakadiClient; import org.zalando.nakadiproducer.eventlog.EventLogWriter; import org.zalando.nakadiproducer.eventlog.impl.EventLogRepository; @@ -39,6 +40,7 @@ @Configuration @AutoConfigureAfter(name="org.zalando.tracer.spring.TracerAutoConfiguration") +@EnableScheduling public class NakadiProducerAutoConfiguration { @ConditionalOnMissingBean({NakadiPublishingClient.class, NakadiClient.class})