Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
awesome-bpj-start
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 94314d9d
authored
2018-04-25 16:58:35 +0800
by
ethanlamzs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
dubbo 配置的优化
1 parent
9256b5c9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
8 deletions
core-services/core-service-demo/src/main/resources/application.yml
core-services/core-service-notice/src/main/resources/application.yml
core-webs/web-demo/src/main/java/com/zhzf/fpj/xcx/web/controller/DemoConsumerController.java
core-webs/web-demo/src/main/resources/application.properties → core-webs/web-demo/src/main/resources/application.properties_
core-webs/web-demo/src/main/resources/application.yml
core-services/core-service-demo/src/main/resources/application.yml
View file @
94314d9
...
...
@@ -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
core-services/core-service-notice/src/main/resources/application.yml
View file @
94314d9
...
...
@@ -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
core-webs/web-demo/src/main/java/com/zhzf/fpj/xcx/web/controller/DemoConsumerController.java
View file @
94314d9
...
...
@@ -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
;
...
...
core-webs/web-demo/src/main/resources/application.properties
→
core-webs/web-demo/src/main/resources/application.properties
_
View file @
94314d9
...
...
@@ -14,3 +14,4 @@ dubbo.protocol.id = dubbo
dubbo.protocol.name = dubbo
dubbo.protocol.port = 12345
core-webs/web-demo/src/main/resources/application.yml
0 → 100644
View file @
94314d9
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
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment