hessian(4)- hessian-servlet.xml 配置

xiaoxiao2021-02-28  39

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> <!-- Hessian 启动BeanNameMapping 映射功能 --> <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping"/> <!-- 各个项目互调入口 --> <bean id="invokeServer" class="com.java.hessian.invoke.InvokeServer" /> <bean name="/invokeServer" class="org.springframework.remoting.caucho.HessianServiceExporter"> <property name="service" ref="invokeServer" /> <property name="serviceInterface" value="com.java.MapRemoteInvoke" /> </bean> </beans>
转载请注明原文地址: https://www.6miu.com/read-2614285.html

最新回复(0)