Skip to content

Commit f84685d

Browse files
committed
客户端指定使用plaintext
1 parent 45c440e commit f84685d

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@ server:
22
port: 8082
33
spring:
44
application:
5-
name: cloud-grpc-consul-client
5+
name: cloud-grpc-client-consul
66
cloud:
77
consul:
88
discovery:
99
registry: false
1010
port: 8500
1111
hostname: 127.0.0.1
12+
grpc:
13+
client:
14+
cloud-grpc-server-consul:
15+
enableKeepAlive: true
16+
keepAliveWithoutCalls: true
17+
negotiationType: plaintext
18+
1219

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ server:
22
port: 8082
33
spring:
44
application:
5-
name: cloud-grpc-consul-client
5+
name: cloud-grpc-client-zookeeper
66
cloud:
77
zookeeper:
88
discovery:
99
registry: false
1010
connect-string: localhost:2181
11-
11+
grpc:
12+
client:
13+
cloud-grpc-server-zookeeper:
14+
enableKeepAlive: true
15+
keepAliveWithoutCalls: true
16+
negotiationType: plaintext

0 commit comments

Comments
 (0)