spring 在容器中一个bean依赖另一个bean 需要通过ref方式注入进去 通过构造器 或property 转载于:https://www.cnblogs.com/classmethond/p/10763067.html