We are starting a new Java EE web application using Spring, Sping MVC and Hibernate. We will most probably be using maven also.
Before starting we need to come up with the project/package structure for the web application.
What is the Standard project/package structure of a Java EE web application?
It should also run on all application servers without making any changes in the project structure or the any configuration files.
We will be using Spring source IDE version 2.6.0 (latest release).
Any ideas?
A common, more complete Java package structure for a MVCSR (Model, View, Controller, Service, Repository) web application goes something like:
If you are using maven, it's best to follow the standard maven project layout. You can get maven to generate this structure for you by doing,
and select spring-mvc-jpa-archetype from the list of choices
This will give you a package structure like,