为什么要用Spring IOC

  1. 对象,创建统一管理
  2. 规范的生命周期管理
  3. 灵活的依赖注入
  4. 一致的获取对象
原文地址:https://www.cnblogs.com/kaishi/p/7442147.html