摘要: spring中注入bean的方法: 1.通过xml文件来注入bean。 2.通过java注解来注入 默认的bean生命周期是单例的。每次都会返回相同的类的实例。 阅读全文
posted @ 2014-03-01 00:29 Leo_Lei 阅读(124) 评论(0) 推荐(0) 编辑