84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
1. The Controller layer of spring still needs to write @Resource to inject the service layer object. Is this decoupling?
温故而知新,可以为师矣。 博客:www.ouyangke.com
Controller relies on Service for logic processing. It cannot be completely decoupled. It can only reduce the coupling between each other. If Spring is not used, calling Service to process business logic will be more complicated.
This is not about decoupling or not, but DI can reduce coupling.
Controller relies on Service for logic processing. It cannot be completely decoupled. It can only reduce the coupling between each other. If Spring is not used, calling Service to process business logic will be more complicated.
This is not about decoupling or not, but DI can reduce coupling.