I have a spring boot app where I am scanning for all the beans defined in spring.xml of jar files added as dependency.
@ImportResource({"classpath*:/META-INF/spring.xml"})
However I have a specific jar file (foo.jar) from which my app should NOT be scanning the spring.xml. Is there a way to specify exclusion for a specific jar file?