阅读背景:

我们在Spring中需要在哪里使用静态工厂方法?

来源:互联网 

context.xml

<!-- the factory bean, which contains a method called createInstance() -->
<bean id="serviceLocator" class="examples.DefaultServiceLocator">
<!-- inject any dependencies required by this locator bean -->
</bean>
<!-- the bean to be created via the factory bean -->
<bean id="clientService"
factory-bean="serviceLocator"
factory-method="createClientServiceInstance"/>
<!-- the factory bean, which cont



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: