Commit 94314d9d by ethanlamzs

dubbo 配置的优化

1 parent 9256b5c9
......@@ -12,7 +12,14 @@ dubbo:
protocol:
id: dubbo
name: dubbo
port: 30001
port: 20880
#registry:
# id: my-registr
# address: N/A
registry:
id: my-registry
address: N/A
id: wbyb
address: zookeeper://localhost:2181
provider:
timeout: 60000
consumer:
timeout: 60000
......@@ -12,7 +12,14 @@ dubbo:
protocol:
id: dubbo
name: dubbo
port: 30002
port: 20881
#registry:
# id: my-registry
# address: N/A
registry:
id: my-registry
address: N/A
id: wbyb
address: zookeeper://localhost:2181
provider:
timeout: 60000
consumer:
timeout: 60000
\ No newline at end of file
......@@ -15,13 +15,15 @@ public class DemoConsumerController {
@Reference(version = "1.0.0",
application = "${dubbo.application.id}",
url = "dubbo://localhost:30001",check = false,timeout = 60000 )
registry = "${dubbo.registry.id}",
check = false )
private DemoService demoService;
@Reference(version = "1.0.0",
application = "${dubbo.application.id}",
url = "dubbo://localhost:30002",check = false,timeout = 60000 )
registry = "${dubbo.registry.id}",
check = false )
private DemoServiceOther demoServiceOther;
......
......@@ -14,3 +14,4 @@ dubbo.protocol.id = dubbo
dubbo.protocol.name = dubbo
dubbo.protocol.port = 12345
spring:
application:
name: web-demo
server:
port: 8080
management:
port: 8081
dubbo:
application:
id: dubbo-consumer-demo
name: dubbo-consumer-demo
registry:
id: wbyb
address: zookeeper://localhost:2181
consumer:
timeout: 60000
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!