Reputation: 5407
Here is my Spring MVC file structure. I wanted to know which file belongs to which layer i.e. Presentation layer
(I thinks .jsp files) , Business layer
, Logic layer
Edit: Database layer
So here which file belongs to which layer and any description about how that file add to layer will help me a lot.
When I learned Spring MVC from internet articles, they were using this short of packages. I appreciate if someone describe uniqueness of each package.
Upvotes: 1
Views: 1405
Reputation: 2774
As you guessed correctly, the .jsp files are your Presentation Layer that handle how your data would look like.
Business Layer is where you write the business logic of your program. In your application, there does not seem to be any package that is doing this. The classes in this layer are usually Plain Old Java Objects (POJOs)
I am not sure what exactly you mean by Logic Layer because it seems to be same as Business layer.
There is another layer called the Data Access Layer which seems more evident in your application.
Package structure:
Upvotes: 3