Skip to content

Commit

Permalink
update dubbo config
Browse files Browse the repository at this point in the history
update dubbo config
  • Loading branch information
leelance committed Jun 21, 2016
1 parent 247975b commit 03a8a1a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:jpa="http://www.springframework.org/schema/data/jpa"
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsd
http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd"
default-lazy-init="true">
<!-- 自动扫描分包 -->
<context:component-scan base-package="com.lance.dubbo.comsumer">
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" />
</context:component-scan>

<!-- Dubbo Consumer Configuration -->
<dubbo:application name="app-user-consumer"/>
<dubbo:registry address="zookeeper://192.168.100.118:2181?backup=192.168.100.119:2181"/>
<dubbo:reference id="userService" interface="com.lance.dubbo.service.UserService"/>
<dubbo:reference id="userAccountService" interface="com.lance.dubbo.service.UserAccountService"/>
</beans>
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
</context:component-scan>

<!-- Dubbo Provider Configuration -->
<dubbo:application name="user-app"/>
<dubbo:application name="app-user-provider"/>
<dubbo:registry address="zookeeper://192.168.100.118:2181?backup=192.168.100.119:2181"/>
<dubbo:protocol name="dubbo" port="20880"/>
<dubbo:service interface="com.lance.dubbo.service.UserService" ref="userServiceImpl" />
<dubbo:service interface="com.lance.dubbo.service.UserService" ref="userService" />
<dubbo:service interface="com.lance.dubbo.service.UserAccountService" ref="userAccountService"/>
</beans>

0 comments on commit 03a8a1a

Please sign in to comment.