forked from leelance/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update dubbo config
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
demo-springmvc-dubbo-consumer/src/main/resources/applicationContext.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters