I would like to add a RESTful API using Spring Boot to an existing webapp running on Tomcat. I have tried to use the SpringBootServletInitializer
in order simplify the integration. However, when doing so Spring Boot seems to interfere with the existing webapp (e.g., /
doesn't work as it used to any more).
Is it possible somehow to configure the Spring Boot integration so that it only handles endpoints that starts with /api
and ignores everything else?
Also, is it possible to use the SpringBootServletInitializer
for this?
The existing servlets are registered with servlet-mappings using the web.xml
file.