title: Configuring Spring MVC and Vaadin in context hierarchy
body: <p>I am looking for any ideas or PoC on how to integrate (specifically configure) Spring MVC and Vaadin (Framework 8) in one web application; preferably as a context hierarchy. </p>
  
  <p>The use case is the Vaadin application as the root context "/" and the Spring MVC application on some other context "/m" (which will be used for server mobile-friendly views). </p>
  
  <p>I have not been able to find any examples, partial or fully, that shows how this is achieved in the configuration (Spring Boot) and I'm constantly running into various problems with invalid context loading, unmapped MVC view references etc. depending on the examples I'm running. </p>
  
  <p>I've looked into this from the perspective of this line in the <a href="https://vaadin.github.io/spring-tutorial/#_bootstrapping_a_vaadin_spring_application" rel="nofollow noreferrer">Vaadin documentation</a>, but have simply not found anything on these topics I can combine to make a solution.</p>
  
  <blockquote>
    <p>It is possible to map both DispatcherServlet and SpringVaadinServlet to different context paths to use both simultaneously to e.g. support Spring MVC and Vaadin in the same application. If doing so, remember to also map the path “/VAADIN/*” to the Vaadin servlet for serving static resources. </p>
  </blockquote>