修复zookeeper连接报错问题

This commit is contained in:
tanghc
2019-04-22 10:27:43 +08:00
parent ae76083184
commit fde7cc482a
7 changed files with 17 additions and 18 deletions

View File

@@ -18,13 +18,15 @@ spring:
cloud:
zookeeper:
connect-string: localhost:2181 # zookeeper地址
connect-string: 10.1.31.126:2181
gateway: # Spring Cloud Gateway配置如果用了zuul这段配置没有效果
discovery:
locator:
lower-case-service-id: true
enabled: true
# 数据源
datasource:
driver-class-name: com.mysql.jdbc.Driver