Difference webcontent and webapp

java, spring, spring-mvc, web-applications

Solution

Project directory structure depends on how it was created and the build tool which you are using.

If you create by selecting File -> New ->Dynamic web project in eclipse, then you find the /WebContent directory.

If it is created using Maven, directory strutcure will be /src/main/webapp.

Please go throuh here for more information on Maven project strutcure.

Problem

I've two Spring MVC projects in Eclipse, but the web content is in different positions. In one app it's located under: ``` /WebContent ``` In the other app under: ``` /src/main/webapp ``` Why that? What's the difference? Is there any way I can see how each project was created in order to create a new one in the same fashion?

Original source

Related problems