java类org.springframework.beans.factory.config.ServiceLocatorFactoryBean的实例源码

PersistanceConfiguration.java 文件源码 项目:CCDA-Score-CARD 阅读 28 收藏 0 点赞 0 评论 0
@Bean
public ServiceLocatorFactoryBean vocabularyLoaderFactoryServiceLocatorFactoryBean() {
    ServiceLocatorFactoryBean bean = new ServiceLocatorFactoryBean();
    bean.setServiceLocatorInterface(VocabularyLoaderFactory.class);
    return bean;
}
IdServiceConfig.java 文件源码 项目:pandapay 阅读 22 收藏 0 点赞 0 评论 0
@Bean
public FactoryBean serviceLocatorFactoryBean() {
    ServiceLocatorFactoryBean factoryBean = new ServiceLocatorFactoryBean();
    factoryBean.setServiceLocatorInterface(IdGeneratorFactory.class);
    return factoryBean;
}


问题


面经


文章

微信
公众号

扫码关注公众号