摘要:
1、在Spring管理下的bean需要以下面这种方式引入(一种注入方式):1 private MgrService mgrService;2 public MgrService getMgrService() {3 return mgrService;4 }5 6 public void setMgrService(MgrService mgrService) {7 this.mgrService = mgrService;8 }2、但是,不要把另外一些没在Spring配置文件里配置的类做这样的引用,因为,在Spring管理中的bean在其他类中引用时需要有se... 阅读全文