title: Run multiple web apps in one spring boot container
body: <p>I would like to be able to have multiple web apps sharing a domain project and running under different contextPaths.</p>
  
  <p>By setting server.contextPath=/webshop in a spring boot app I dont need to prefix all the RequestMappings.</p>
  
  <p>I would like the webshop, admin, and main page to share a common domain project which contains all the entities and common services.</p>
  
  <p>Maybe with something like?</p>
  
  <pre><code>public static void main(String[] args) {
      new SpringApplicationBuilder(Domain.class)
          .showBanner(false)
          .child(Admin.class, Webshop.class)
          .run(args);
  }
  </code></pre>
  
  <p>My problem is how do I start a spring boot app with a common domain model, and then a couple of stand alone web apps with unique contextPaths?</p>