<?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:dubbo="http://code.alibabatech.com/schema/dubbo"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://code.alibabatech.com/schema/dubbo
http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
<!--应用名称-->
<dubbo:application name="hello-world-app"/>
<!--多注册中心,启动时不检查,且不是默认的注册中心-->
<!--暴露端口的地址-->
<dubbo:protocol name="dubbo" port="20880" />
<dubbo:service interface="com.learn.core.demo.CallbackService" ref="callbackService" connections="1" callbacks="100" >
<dubbo:method name="addListener">
<dubbo:argument index="1" callback="true"/>
</dubbo:method>
</dubbo:service>
<bean class="com.learn.core.demo.provider.CallbackServiceImpl" id="callbackService"/>
</beans>
转载于:https://www.cnblogs.com/JNUX/p/9041545.html
转载请注明原文地址: https://mac.8miu.com/read-20241.html