摘要: 一般情况下, Spring是通过反射机制利用bean的class属性指定实现类来完成实例化bean的。在某些特定的情况下, 想做一些定制,Spring为此提供了一个org.springframework.beans.factory.FactoryBean的工厂类接口, 用户可以通过实现该接口定制实例 阅读全文
posted @ 2018-05-22 17:49 Chinda 阅读(300) 评论(0) 推荐(0)