Spring: Getting FactoryBean object instead of FactoryBean.getObject()

前端 未结 2 1795
轮回少年
轮回少年 2020-12-31 10:06

Short question: If I have class that impelemnts FactoryBean interface, how can I get from FactoryBean object itself instead of FactoryBean.getObject()?

2条回答
  •  离开以前
    2020-12-31 10:39

    It's the & (ampersand), not the At-symbol, see Spring Framework documentation: Customizing instantiation logic using FactoryBeans

    
    

提交回复
热议问题