fix(forest): 修复加入zookeeper作为备选注册中心后无法使用负载均衡组件
LoadBalance 默认会先夹在 Zookeeper 作为注册中心,导致 Eureka 无法正常使用,如果要使用 Eureka,就要把整个 Zookeeper 的自动加载关掉
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
spring:
|
||||
cloud:
|
||||
zookeeper:
|
||||
enabled: false
|
||||
connect-string: 127.0.0.1:2181
|
||||
discovery:
|
||||
enabled: false
|
||||
enabled: ${spring.cloud.zookeeper.enabled}
|
||||
root: /hudi-services
|
||||
instance-host: localhost
|
||||
instance-id: ${spring.application.name}-${spring.cloud.zookeeper.discovery.instance-host}-${random.uuid}-${datetime:19700101}
|
||||
connect-string: 127.0.0.1:2181
|
||||
eureka:
|
||||
instance:
|
||||
hostname: localhost
|
||||
|
||||
Reference in New Issue
Block a user