spring DI decouple all layers

来源:互联网 发布:php查找字符串是否存在 编辑:程序博客网 时间:2024/06/15 00:36

DI ,Dependency  injection ,it can well  effectively organize objects from  action tier, service tier and DAO tier. via spring DI ,these tiers can work together . the action tier do not need to care about the service tier; service tier no need to take responsible for the DAO tier .the spring decouples them separately .it is the interface based  programming .

there is another advantage is when need to refactor the system, it will greatly reduce the modification