In a Spring 'Maven' project, where to place web.xml file?
I am creating a spring mvc project and not sure about where to put web.xml in the project.
This is an example of a structure of Spring project with maven
├── src
│ └── main
│ ├── java
│ │ └── com
│ │ └── hellokoding
│ │ └── hello
│ │ └── web
│ │ └── YourClass.java
│ ├── resources
│ │ ├── application.properties
│ │ └── logback.xml
│ └── webapp
│ ├── resources
│ │ ├── css
│ │ │ └── bootstrap.min.css
│ │ ├── images
│ │ └── js
│ │ └── bootstrap.min.js
│ └── WEB-INF
│ ├── views
│ │ └── hello.jsp
| ├── appconfig-mvc.xml
│ ├── appconfig-root.xml
│ └── web.xml
└── pom.xml
From here
it's WEB-INF/web.xml Check out the below link ref: https://docs.oracle.com/javaee/5/tutorial/doc/bnadx.html No matter how your archetype structures the project, the final build always follow the specifications. I know the frameworks like spring hides all the specification details and nowadays newbies don't pay attention to all such details. Well knowing specifications and how the frameworks are constructed over these specifications adds value to your software development skills.
web.xmlisWEB-INF, and this doesn't change because you are using Spring.web.xmlfile is, then maybe the framework is taking care of it for you.