I am moving from legacy project to spring boot project,
The legacy project uses some self-defined servlets in web.xml
, along with resin
to provide http service.
We wish that by using SpringBoot, together with the embedded tomcat
, we could generate a jar
file and start that jar file to provide http services.
I was trying to move everything inside web.xml
to a WebXmlConfig.java
, but I find out some problems which are hard to handle, so my problem is that how to tell Spring Boot to load web.xml
?
I have searched some posts like this and this, but they all seem not working, so any idea I can do that? Thanks in advance.
Asked
Active
Viewed 82 times
0

theotheo
- 145
- 2
- 9
-
You don't. As Spring bOot isn't loading that thing that is Tomcat (assuming you use the default). Also loading that will lead to other issues with Spring Boot. So your best option is to solve those issues you have (which shouldn't be that hard). – M. Deinum Jul 15 '21 at 09:19
-
@M.Deinum Seems like everyone is suggesting so, lol – theotheo Jul 15 '21 at 12:03