Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8900555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:07:32+00:00 2026-06-15T01:07:32+00:00

We want to create a spring MVC project using maven. We want to use

  • 0

We want to create a spring MVC project using maven. We want to use just one project and, under it, have multiple sub-projects

What would be a good directory/package structure for the project for example

com
    company
        subproject_1
            controller
            doa
            service
            entity
        subproject_2
            controller
            dao
            service
            entity
        

or all files of sub projects in one project

com
    company
            controller
                all controllers of all sub projects 
            doa
                all dao of all sub projects
            service
            entity      

depending on the experience which project structure would be maintainable if the project increases and sub projects keeps adding on

or suggestion of any other package structure?

also what is the naming standard used for directory
is it entity or domain? doa or persistence?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:07:33+00:00Added an answer on June 15, 2026 at 1:07 am

    Why not following a multi-module project structure to group your sub-projects? It’s a good coding practise widely adopted, recognised and easily manageable. Have a look at this example.

    As far as the naming conventions goes that’s personal preference but it’s good idea to clearly maintain in package structure the different layers as you are saying from botton-top approach: the dao level, the domain, the service layer, the controllers and finally the view.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Maven project with Hibernate and Spring framework. I want Hibernate to create
I want to create a multi-module (maven) spring MVC application, with modules like: web
I have a strange problem. When I want to create a new Spring MVC
I want to create a rest api using reasteasy and jax-rs in spring. to
I want to create a web app that will use wicket, hibernate and spring
I am using Jboss and Netbeans to create Spring MVC web application on windows.
I have .NET MVC 3 project where I use sql membership provider and entity
I am an MVC C# newbie. I have a project which is using the
I have a Spring 3.1 MVC + Hibernate 3.6 project with its junit4 test
I am using Hibernate with my Spring MVC project. Lets say my model has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.