Spring Configurations

Example of minimal annotation injection based config file

@Configuration
@Import({MyExternalAppSpringConfiguration.class})
@ComponentScan(basePackages = {"org.app.my"}, excludeFilters = @ComponentScan.Filter(type = FilterType.ANNOTATION, value = IgnoreDuringScan.class))
public class MyAppSpringConfiguration{}