Commit 4e95f58f by ethanlamzs

Merge branch 'fea-dubbo-config'

1.integration: dubbo + mybatis + spring_boot + sharding-jdbc
2.业务设计的基本分层目录初版
2 parents 9256b5c9 94314d9d
...@@ -12,7 +12,14 @@ dubbo: ...@@ -12,7 +12,14 @@ dubbo:
protocol: protocol:
id: dubbo id: dubbo
name: dubbo name: dubbo
port: 30001 port: 20880
#registry:
# id: my-registr
# address: N/A
registry: registry:
id: my-registry id: wbyb
address: N/A address: zookeeper://localhost:2181
provider:
timeout: 60000
consumer:
timeout: 60000
...@@ -12,7 +12,14 @@ dubbo: ...@@ -12,7 +12,14 @@ dubbo:
protocol: protocol:
id: dubbo id: dubbo
name: dubbo name: dubbo
port: 30002 port: 20881
#registry:
# id: my-registry
# address: N/A
registry: registry:
id: my-registry id: wbyb
address: N/A address: zookeeper://localhost:2181
provider:
timeout: 60000
consumer:
timeout: 60000
\ No newline at end of file \ No newline at end of file
...@@ -15,13 +15,15 @@ public class DemoConsumerController { ...@@ -15,13 +15,15 @@ public class DemoConsumerController {
@Reference(version = "1.0.0", @Reference(version = "1.0.0",
application = "${dubbo.application.id}", application = "${dubbo.application.id}",
url = "dubbo://localhost:30001",check = false,timeout = 60000 ) registry = "${dubbo.registry.id}",
check = false )
private DemoService demoService; private DemoService demoService;
@Reference(version = "1.0.0", @Reference(version = "1.0.0",
application = "${dubbo.application.id}", application = "${dubbo.application.id}",
url = "dubbo://localhost:30002",check = false,timeout = 60000 ) registry = "${dubbo.registry.id}",
check = false )
private DemoServiceOther demoServiceOther; private DemoServiceOther demoServiceOther;
......
...@@ -14,3 +14,4 @@ dubbo.protocol.id = dubbo ...@@ -14,3 +14,4 @@ dubbo.protocol.id = dubbo
dubbo.protocol.name = dubbo dubbo.protocol.name = dubbo
dubbo.protocol.port = 12345 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!