Change Kafka Samples to use Boot auto-config

Remove `@IntegrationComponentScan` from Boot samples

Since the latest Spring Boot utilize already `@IntegrationComponentScan` for the `@SpringBootApplication` class package, there is no reason to worry about lost `@MessagingGateway`

Reflect Kafka samples changes according latest Spring Boot fixes
This commit is contained in:
Artem Bilan
2016-12-21 17:15:09 -05:00
committed by Gary Russell
parent dba0ee6112
commit a21a2444ef
8 changed files with 57 additions and 106 deletions

View File

@@ -20,7 +20,6 @@ import org.apache.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.integration.annotation.IntegrationComponentScan;
import org.springframework.integration.dsl.IntegrationFlow;
import org.springframework.integration.dsl.IntegrationFlows;
import org.springframework.integration.dsl.Pollers;
@@ -41,7 +40,6 @@ import org.springframework.messaging.MessageHandler;
*
*/
@SpringBootApplication
@IntegrationComponentScan
public class Application {
private static final Logger LOGGER = Logger.getLogger(Application.class);