多协议

    多协议暴露服务

    1. <beans xmlns="http://www.springframework.org/schema/beans"
    2. xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"
    3. <dubbo:application name="world" />
    4. <dubbo:registry id="registry" address="10.20.141.150:9090" username="admin" password="hello1234" />
    5. <dubbo:protocol name="hessian" port="8080" />
    6. <!-- 使用多个协议暴露服务 -->
    7. <dubbo:service id="helloService" interface="com.alibaba.hello.api.HelloService" version="1.0.0" protocol="dubbo,hessian" />