Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use of Service and DAO Layer in Spring MVC

Tags:

spring-mvc

I need the exact purpose of Service layer in MVC. Can we implement without service layer.. What are the major responsibilities of these layers.. Can we implement without anyone of these layers..

Can you please someone help me to know this..

like image 954
Girija V Avatar asked Dec 05 '25 18:12

Girija V


1 Answers

The service layer is there to provide logic to operate on the data sent to and from the DAO and the client. Very often these 2 pieces will be bundled together into the same module, and occasionally into the same code, but you'll still see them as distinct logical entities.

This may helpful to you

https://softwareengineering.stackexchange.com/questions/220909/service-layer-vs-dao-why-both

like image 146
Nishan Dhungana Avatar answered Dec 09 '25 18:12

Nishan Dhungana