<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<!-- auto register Processor -->
<context:annotation-config />
<!--
<bean id="deliveryApplicationContext"
class="com.sdo.ewallet.emall.sales.website.hessian.DeliveryApplicationContext" />
-->
<bean id="hessianServiceManager"
class="com.sdo.ewallet.comm.hessian.HessianServiceManager" />
<bean id="deliveryHessianServiceRegister"
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject">
<ref bean="hessianServiceManager" />
</property>
<property name="targetMethod">
<value>registerServices</value>
</property>
<property name="arguments">
<list>
<list>
<ref bean="sales2NetbarDeliveryService" />
<ref bean="syncNetbarInfo2Emall" />
<ref bean="hessianShopService" />
</list>
</list>
</property>
</bean>
</beans>MethodInvokingFactoryBean使用配置
最新推荐文章于 2020-07-19 17:16:44 发布
本文深入探讨了如何在Spring框架中集成并配置Hessian服务,通过使用注解配置的方式实现了服务的自动注册,并详细介绍了相关Bean的定义与作用。
1552

被折叠的 条评论
为什么被折叠?



