Skip to content

Commit 41c3809

Browse files
committed
修改consul配置文件
1 parent 0fc584e commit 41c3809

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

examples/cloud-grpc-client-consul/src/main/resources/application.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@ spring:
66
cloud:
77
consul:
88
discovery:
9+
registry: false
910
port: 8500
1011
hostname: 127.0.0.1
11-
12-
#grpc:
13-
# client:
14-
# grpc-server:
15-
# host:
16-
# - ${GRPC-SERVER-HOST:127.0.0.1}
17-
# port:
18-
# - 9090
19-
# enableKeepAlive: true
20-
# keepAliveWithoutCalls: true
12+

examples/cloud-grpc-server-consul/src/main/resources/application.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ spring:
77
cloud:
88
consul:
99
discovery:
10+
registry: true
1011
port: 8500
1112
hostname: 127.0.0.1
1213

1314
grpc:
1415
server:
15-
port: 9999
16-
# enabled: true
17-
# inProcessServerName: user
16+
port: 9999

0 commit comments

Comments
 (0)