用spring来控制反转(ioc)

只需要修改配置文件(.xml)中的bean即可,不需要修改任何java代码

原文地址:https://www.cnblogs.com/minconding/p/9941964.html