2012年2月24日
摘要: Spring容器中,Bean的实例化方式还是有三种的。第一种就是最普通的直接构造,第二种和第三种分别是使用工厂生产模式来实例化Bean。下面来仔细说一下。首先建立工厂类package com.bird.service.impl; public class PersonServerBeanFactory { public static PersonServerImpl creatPersonServerImpl(){ return new PersonServerImpl(); } public PersonServerImpl creatPersonServerImpl... 阅读全文
posted @ 2012-02-24 21:07 sp2012 阅读(1295) 评论(0) 推荐(0) 编辑