title: Spring Boot: Configuration Class is simply ignored and not loaded
body: <p>I have the following <code>@Configuration</code> class on the classpath of a few of my <code>@SpringBootApplication</code>s:</p>
  
  <pre><code>@Configuration
  @Import({MainConfig.class, RestConfig.class})
  public class ApiConfig {
  
      @Bean
      @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
      public Client client() throws ExecutionException, InterruptedException {
          return service.create(Client.class);
      }
  
  }
  </code></pre>
  
  <p>I have two services that use this config (with differently named <code>Client</code> classes).</p>
  
  <p>Service 1 starts correctly and loads this config. I can see during start up that a bean of type <code>ApiConfig</code> was eagerly initialized.</p>
  
  <p>Service 2 starts incorrectly: the above configuration class is simply ignored and not initialized.</p>
  
  <p>The services are started in separate JVMs.</p>
  
  <p>Ther services have nearly identical, very small <code>application.properties</code> files:</p>
  
  <pre><code>spring.application.name=xxx-api
  server.port=0
  eureka.name=xxx.api
  # Only for reading properties from a central location
  context.initializer.classes=com.package.contextClass
  </code></pre>
  
  <p>I'm not even sure what kind of additional information I could write into the question. I have been going through logs for a couple of hours now and see no discernible difference, simply that it plainly ignores my <code>@Configuration</code> class. </p>
  
  <p>Has anyone had this issue before?</p>