Skip to content

Commit

Permalink
Polish /apache#3582 : Translate to English
Browse files Browse the repository at this point in the history
  • Loading branch information
mercyblitz committed Mar 15, 2019
1 parent cedc7a3 commit 44e87f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd">

<!-- 提供方应用信息,用于计算依赖关系 -->
<dubbo:application name="dubbo-consumer-xml-demo"/>

<!-- 使用 Nacos 注册中心 -->
<!-- Nacos Registry -->
<dubbo:registry address="nacos://127.0.0.1:8848"/>

<!-- 引用服务接口 -->
<!-- Reference interface -->
<dubbo:reference id="demoService" interface="org.apache.dubbo.demo.service.DemoService" version="2.0.0"/>

</beans>
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@
xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd">

<!-- 提供方应用信息,用于计算依赖关系 -->
<dubbo:application name="dubbo-provider-xml-demo"/>

<!-- 使用 Nacos 注册中心 -->
<!-- Nacos Registry -->
<dubbo:registry address="nacos://127.0.0.1:8848"/>

<!-- 用dubbo协议在随机端口暴露服务 -->
<!-- Use random port as Dubbo -->
<dubbo:protocol name="dubbo" port="-1"/>

<!-- 声明需要暴露的服务接口 -->
<dubbo:service interface="org.apache.dubbo.demo.service.DemoService" ref="demoService" version="2.0.0"/>

<!-- 和本地bean一样实现服务 -->
<bean id="demoService" class="org.apache.dubbo.demo.service.DefaultService"/>
</beans>

0 comments on commit 44e87f1

Please sign in to comment.