java - The Controller layer of spring still needs to write @Resource to inject the service layer object. Is this decoupling?
欧阳克
欧阳克 2017-06-23 09:12:59
0
2
960

1. The Controller layer of spring still needs to write @Resource to inject the service layer object. Is this decoupling?

欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

reply all(2)
为情所困

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template