As we are going to use Spring MVC APIs heavily in our project, we need to add the Spring jars in our project to make use of it in our development. As mentioned previously, Maven will take care of managing dependency jars and packaging the project.
Let's take a look at how we can add the Spring-related jars via the Maven configuration:
pom.xml; you can find
pom.xmlunder the root directory of the project itself.
pom.xmlfile. Select the Dependencies tab.
If you do not see these tabs, then right-click on
pom.xml, select the Open With... option from the context menu, and choose Maven POM editor.