How can I convert a Web Application with multiple servlet contexts to Spring Boot using embedded Tomcat?

125 Views Asked by At

I need to convert an old web application containing multiple tomcat contexts into a Spring Boot application that utilizes Embedded Tomcat.

The following is the server.xml file defining the contexts:

server.xml

Is there a way in which I can configure a Spring Boot application in order for it to contain all of these contexts?

I've seen that it's possible to configure a context by overriding methods of the TomcatServletWebServerFactory, is there any method of that class I can override to define more than one context?

0

There are 0 best solutions below