u/Other-Extent2114

Question about flow with mappers

Hello,

I am learning spring currently and have come across two flows/philosophies in regards to how the flow should be for transferring data.

The first one I’ve seen is

Controller - Service - Mapper - Repository

This is initially what I’ve been doing, however, I have seen some repositories and comments of people saying best practice is

Controller - Mapper - Service - Repository

Which is correct? Or is it a case by case basis?

reddit.com
u/Other-Extent2114 — 5 days ago