摘要: 1.普通的通过构造函数初始化,没有指定构造函数参数的就是用默认的无参的构造方法<bean id="exampleBean" class="examples.ExampleBean"/> <bean name="anotherExample" class="examples.ExampleBeanTwo"/>构造函数的几种方式:1.普通沟通函数注入方式,按照构造函数参数的顺序和个数来注入beanpackage x.y; public class Foo { public Foo(Bar bar 阅读全文
posted @ 2013-01-08 17:04 zhwj184 阅读(248) 评论(0) 推荐(0) 编辑