I'm a junior Spring Boot developer and I have issues with integration of web.xml file in a project.
Is it possible to add that XML in my project without destroying my old configuration?
I'm a junior Spring Boot developer and I have issues with integration of web.xml file in a project.
Is it possible to add that XML in my project without destroying my old configuration?
You could simply create directories webapp/WEB-INF
in the main
folder of your project and put web.xml file into WEB-INF
. That should be enough for Spring-boot to take web.xml
into account BUT as it was mention in the comment you don't need to do that in 99.99999% of situations of modern web application development.
If you add spring-boot-starter-web
dependence into your maven or gradle configs you will have a fully configured TomCat web server inside your application and you can specify all options of it in application.properties
file of your application of with some special classes.
Try to google about things I mention in this post and also came throug this tutorial of basic Spring boot web application https://spring.io/guides/gs/spring-boot/