【Spring 基础篇二】IoC容器的两种注入方式
摘要:
在上篇介绍Spring的作用的时候,我们提到了在Manager实现层创建“构造函数”的注入方式,其实除此之外,还有一种“setter方法”注入的方式。部分代码如下:(详情过程见上篇 Spring—— 为什么使用Spring?)构造函数注入方式:UserMan... 阅读全文
posted @ 2016-01-05 21:45 huohuoL 阅读(159) 评论(0) 推荐(0) 编辑
posted @ 2016-01-05 21:45 huohuoL 阅读(159) 评论(0) 推荐(0) 编辑
posted @ 2016-01-05 16:23 huohuoL 阅读(170) 评论(0) 推荐(0) 编辑