I have a config class B which uses the @Import annotation to import config class A, in this manner
@Configuration @Import({A.class}) public class B { ... }