Guice Customization / Binding Recommendations

How to configure Guice if you have a multi-level architecture (DAO, Services, Controllers)?

Should it be configured in the top layer (controllers)? Or should we customize in each layer? If so, how can they be brought closer together?

How about tests? How should it be? Thank.

+4
source share
1 answer

According to general practice, the DAO is as light as possible and exists to provide a connection to the database.

A service layer exists to provide logic for working with data sent to and from the DAO.

, , .

, , Guice, , DAO .

DAO , , , , DAO . >

0

Source: https://habr.com/ru/post/1656198/


All Articles