提交 3fadf607 编写于 作者: 武汉红喜's avatar 武汉红喜

规范配置

上级 7176d288
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<!--&lt;!&ndash; 使用zookeeper注册中心暴露服务地址 &ndash;&gt;--> <!--&lt;!&ndash; 使用zookeeper注册中心暴露服务地址 &ndash;&gt;-->
<!--<dubbo:registry address="zookeeper://127.0.0.1:2181" />--> <!--<dubbo:registry address="zookeeper://127.0.0.1:2181" />-->
<dubbo:reference id="demoService" interface="org.hongxi.whatsmars.dubbo.demo.api.DemoService" retries="2" /> <dubbo:reference id="demoService" interface="org.hongxi.whatsmars.dubbo.demo.api.DemoService" />
<!-- url="hessian://127.0.0.1:8080/org.hongxi.whatsmars.dubbo.demo.api.DemoService" --> <!-- url="hessian://127.0.0.1:8080/org.hongxi.whatsmars.dubbo.demo.api.DemoService" -->
<dubbo:reference id="demoService2" interface="org.hongxi.whatsmars.dubbo.demo.api.DemoService" <dubbo:reference id="demoService2" interface="org.hongxi.whatsmars.dubbo.demo.api.DemoService"
......
...@@ -22,9 +22,10 @@ ...@@ -22,9 +22,10 @@
<!-- provider用于统一配置全部service,优先级service > provider --> <!-- provider用于统一配置全部service,优先级service > provider -->
<dubbo:provider timeout="3000" /> <dubbo:provider timeout="3000" />
<!-- 默认配了 protocol="dubbo,hessian" 默认retries="2" -->
<dubbo:service interface="org.hongxi.whatsmars.dubbo.demo.api.DemoService" ref="demoService" <dubbo:service interface="org.hongxi.whatsmars.dubbo.demo.api.DemoService" ref="demoService"
timeout="500" /> <!-- 默认配了 protocol="dubbo,hessian" --> timeout="500" retries="2" />
<!-- 类似group的还有version="2.0.0" --> <!-- 类似group的还有version="2.0.0" -->
<dubbo:service group="new" interface="org.hongxi.whatsmars.dubbo.demo.api.DemoService" ref="demoService2" /> <dubbo:service group="new" interface="org.hongxi.whatsmars.dubbo.demo.api.DemoService" ref="demoService2" />
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
dubbo.container=log4j,spring dubbo.container=log4j,spring
dubbo.spring.config=classpath*:META-INF/spring/*.xml dubbo.spring.config=classpath*:META-INF/spring/*.xml
dubbo.application.name=demo-provider dubbo.application.name=demo-provider
dubbo.application.owner=william dubbo.application.owner=javahongxi
#dubbo.registry.address=multicast://224.5.6.7:1234 #dubbo.registry.address=multicast://224.5.6.7:1234
dubbo.registry.address=zookeeper://127.0.0.1:2181 dubbo.registry.address=zookeeper://127.0.0.1:2181
#dubbo.registry.address=redis://127.0.0.1:6379 #dubbo.registry.address=redis://127.0.0.1:6379
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册