From: Kai Moritz Date: Thu, 30 Jun 2022 19:10:58 +0000 (+0200) Subject: WIP X-Git-Tag: wip-integration-xml~3 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=622a0667f8b655178bfabf11e3a2a141788bc8be;p=demos%2Fkafka%2Fwordcount WIP --- diff --git a/src/main/java/de/juplo/kafka/wordcount/splitter/SplitterApplication.java b/src/main/java/de/juplo/kafka/wordcount/splitter/SplitterApplication.java index 8b33265..5d399f4 100644 --- a/src/main/java/de/juplo/kafka/wordcount/splitter/SplitterApplication.java +++ b/src/main/java/de/juplo/kafka/wordcount/splitter/SplitterApplication.java @@ -4,6 +4,7 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.ImportResource; import org.springframework.expression.common.LiteralExpression; import org.springframework.integration.annotation.ServiceActivator; import org.springframework.integration.channel.DirectChannel; @@ -22,6 +23,7 @@ import org.springframework.messaging.support.ChannelInterceptor; @SpringBootApplication @EnableConfigurationProperties(SplitterApplicationProperties.class) @EnableIntegration +@ImportResource("classpath:integration.xml") public class SplitterApplication { @Bean diff --git a/src/main/resources/integration-context.xml b/src/main/resources/integration-context.xml deleted file mode 100644 index f6ec728..0000000 --- a/src/main/resources/integration-context.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - diff --git a/src/main/resources/integration.xml b/src/main/resources/integration.xml new file mode 100644 index 0000000..f6ec728 --- /dev/null +++ b/src/main/resources/integration.xml @@ -0,0 +1,13 @@ + + + + + +