title: Using multiple webapps on the same port with spring boot
body: <p>Is there a possibility to configure several webapps in a spring boot with embedded tomcat in a way that:</p>
  
  <ul>
  <li>Each webapp has its own context url</li>
  <li>Each webapp has it own ServletContext</li>
  <li>Each webapp is loaded in a separate classloader (like it would be deployed on standalone tomcat <a href="https://tomcat.apache.org/tomcat-8.0-doc/class-loader-howto.html" rel="nofollow noreferrer">https://tomcat.apache.org/tomcat-8.0-doc/class-loader-howto.html</a>)</li>
  <li>Webapp is not bundled into war</li>
  </ul>
  
  <p>I saw already:</p>
  
  <p><a href="https://stackoverflow.com/questions/29096511/using-multiple-dispatcher-servlets-web-contexts-with-spring-boot">Using multiple dispatcher servlets / web contexts with spring boot</a> - as far as I understand we actuall have here one webapp with one ServletContext and classloader.</p>
  
  <p><a href="https://stackoverflow.com/questions/21630820/configure-multiple-servletcontainers-servlets-with-spring-boot">Configure multiple servletcontainers/servlets with spring boot</a> - here different ports are used for webapps and I would prefer to have it on one port</p>