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 8845065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:38:48+00:00 2026-06-14T11:38:48+00:00

Current project structure On my first spring mvc project, I am trying to get

  • 0

enter image description hereCurrent project structure

On my first spring mvc project, I am trying to get a better understanding of the directory structure with this project and why it is done as such

I get what goes in ‘controllers’ and ‘views’ directory, but am unsure of the others. If I look at the .java file in beans and commands, they look the same to me – no difference in annotations between the two, so why can’t the 2 directories be combined into one?

What goes into services?

The mappers looks like it is for mapping with a database for an OR/M object

Not sure of resolvers directory

Is this standard way of organizing spring mvc projects?

  • 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-14T11:38:49+00:00Added an answer on June 14, 2026 at 11:38 am

    Every project has its structure according to the style of organization/user. The structures abide the standards set down by the organization. So they vary from one to another. A MVC project can be broadly categoried into

    1. controllers
    2. services //Business Logic layer. Layer between controller and dao
    3. dao // Communicates with DB
    4. command or bo or vo (whatever name suits your fancy)

    The above are the main three. Then there might be other folders like

    1. utils //Converters, validators etc could go here or in their own package
    2. resources // Place your .properties, xmls etc here

    In the context of spring, any class marked with an annotation inheriting from @Component is a bean, so the structure that you have mentioned in the question could have been made keeping that in mind but isn’t being used correctly.

    The resolvers folder might host View Resolvers. This is, again, just a guess. Depends entirely on you.

    You could look into maven’s spring archetype and the way it organizes a spring project to get a view of how the creators of Spring organize a project.

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

Sidebar

Related Questions

My current project structure is made to do logging of exceptions and such into
How do I locate the current file in the project structure? (Similar to Visual
My current project involves using LDAP (Active Directory) and I'm using issue tracking for
In my current project I'm currently trying to replace the Windsor IoC in favour
The structure for the current project I am working on is something like: root/index.php
I have 2 projects : The first project is a structure project which i
First I will explain the structure of my project: I have a WCF-service public
Currently I’m trying to get the hang of a block copy with my current
The directory structure of my C++ project is /.. makefile <- the makefile is
I have been developing my first large (for me) MVC project for a couple

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.