通过FactoryBean方式来配置bean

1.实现FactoryBean接口的java类:

2.相应的.xml文件:

原文地址:https://www.cnblogs.com/zhangshitong/p/5326487.html