title: Create a spring boot application with multiple child contexts
body: <p>I'm trying to create an application using spring boot with an hierarchical application context.
  My current main method looks like:</p>
  
  <pre><code>public static void main(String[] args) {
      new SpringApplicationBuilder(TestApplication.class)
              .child(AuditServiceConfiguration.class).web(true)
              .child(TaskServiceConfiguration.class).web(true)
              .run(args);
  }
  </code></pre>
  
  <p>and the two children configurations are annotated with:</p>
  
  <pre><code>@EnableAutoConfiguration
  @Configuration
  </code></pre>
  
  <p>The idea is to have a parent context containing all common beans and each child context to run its own MVC while being isolated from its siblings.</p>
  
  <p>Unfortunately when I run the above, only the last child context is initialised and started.</p>
  
  <p>Any pointers in the right direction would be greatly appreciated.</p>
  
  <p>Regards,</p>
  
  <p>Alessandro</p>