Files
java-tutorials/dubbo/src/test/resources/multicast/consumer-app.xml
T

15 lines
854 B
XML

<?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">
<!-- provider application meta -->
<dubbo:application name="demo-consumer" version="1.0"/>
<!-- address used to expose provider's service -->
<dubbo:registry address="multicast://224.1.1.1:9090"/>
<!-- remote service proxy, acting like a local bean while invoking -->
<dubbo:reference interface="com.baeldung.dubbo.remote.GreetingsService" id="greetingsService" cache="lru" />
</beans>