I haven\'t been working on real world web projects. At university we used both Servlets and Spring for Java web development. In both projects we were given web.xml files alr
Here I found an example of Web Application without using the deployment descriptor file(web.xml). The only point to consider here is this will work with the latest tomcat versions >=7.0
Visit http://java-demos.blogspot.com/2014/01/servlet-web-application-without-webxml.html
Visit https://www.baeldung.com/java-web-app-without-web-xml