I have a Spring Rest Application built using Spring Boot framework. Now while writing Spring Integration Test, I wanted to exclude a class from being get component scanned.my this class contains the dependency for Apache Kafka. if this class loads while container start up it start looking for Kafka running instances.
so while running Integration test I will not be starting my Kafka server,so I wanted to run Integration test making Kafka shutdown.
any help is appreciated.