??????
    ????dubbo??????????
<?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"; 
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://code.alibabatech.com/schema/dubbo 
http://code.alibabatech.com/schema/dubbo/dubbo.xsd
        http://www.springframework.org/schema/context 
http://www.springframework.org/schema/context/spring-context-4.0.xsd";>


    <dubbo:application name="xxx" organization="xxxxxx"/>


    <dubbo:registry id="xxxxxx" protocol="zookeeper" 
address="${dubbo.registry.address}"/>


    <dubbo:monitor protocol="registry"/>
    <dubbo:provider port="21881" delay="-1" timeout="10000" 
host="${dubbo.provider.host}"/>
    <dubbo:protocol name="dubbo" serialization="kryo"/>


    <dubbo:annotation/>
    <context:component-scan base-package="xxxxxxxxxxx">
        <context:include-filter type="annotation" 
expression="com.alibaba.dubbo.config.annotation.Service"/>
        <context:exclude-filter type="annotation" 
expression="org.springframework.stereotype.Controller"/>
        <context:exclude-filter type="annotation" 
expression="org.springframework.web.bind.annotation.ControllerAdvice"/>
    </context:component-scan>


    <dubbo:consumer check="false" />
</beans>




??linux??????????????????????????????
: initialization completed in 3479 ms
[ZkClient-EventThread-29-127.0.0.1:2181] INFO  
[org.I0Itec.zkclient.ZkEventThread] - Terminate ZkClient event thread.
[main-EventThread] INFO  [org.apache.zookeeper.ClientCnxn] - EventThread shut 
down
[DubboShutdownHook] INFO  [org.apache.zookeeper.ZooKeeper] - Session: 
0x16469b7714c0006 closed

????????????????????zookeeper??????????


??????root??????????????????????????????????????????????????root??????


??????????????????????????????????????????????????????????????




~
~

Reply via email to