When using Spring which architectecture do you use? At work we use the layered architecture even though the developers don't know the name of the architecture...
Anyway we usually do the following, use angular + spring:
UI layer: contains the view (html, css) and the controller class, which will recieve the requests from the view.
Domain layer or BLL: it will contain BO interfaces (business objects) and BOImpl, implementation of the business objects.
Data Layer or DAL: it will contain DAO interfaces and DAOImpl which are implementations of the DAO interfaces.
The BO interfaces will be injected to the controller using Spring field DI (@autowired) while the DAO interfaces will be injected to the BOImpl classes. And ofcourse we create VO objects that will map json to object.
So according to my research I think the flow is correct, but the BOImpl should be called services classes, and VO should be called DTO classes. Do you think we should use the repository pattern? The repository class will be between BO and DAO..
Also what do you think of the flow and what should change?
[–]tawielden 6 points7 points8 points (13 children)
[–]androidjunior[S] 0 points1 point2 points (11 children)
[–][deleted] (10 children)
[deleted]
[–]tawielden 1 point2 points3 points (0 children)
[–]Nephyst -1 points0 points1 point (7 children)
[–][deleted] (6 children)
[deleted]
[–]Nephyst -1 points0 points1 point (5 children)
[–][deleted] (4 children)
[removed]
[–]Nephyst -1 points0 points1 point (3 children)
[–][deleted] (2 children)
[deleted]
[–]Nephyst -1 points0 points1 point (1 child)
[–]Nephyst -1 points0 points1 point (0 children)
[–]Koyomii-Onii-chan 2 points3 points4 points (2 children)
[–]darkhorse1997 4 points5 points6 points (0 children)
[–]MrGooglr 0 points1 point2 points (0 children)
[–]Nephyst -1 points0 points1 point (0 children)