diff --git a/tx-manager/src/main/resources/application.properties b/tx-manager/src/main/resources/application.properties index 67b0fc1bd..0fd633269 100644 --- a/tx-manager/src/main/resources/application.properties +++ b/tx-manager/src/main/resources/application.properties @@ -13,9 +13,11 @@ spring.resources.static-locations=classpath:/static/ #zookeeper地址 #spring.cloud.zookeeper.connect-string=127.0.0.1:2181 +#spring.cloud.zookeeper.discovery.preferIpAddress = true #eureka 地址 eureka.client.service-url.defaultZone=http://127.0.0.1:8761/eureka/ +eureka.instance.prefer-ip-address=true #######################################redis-start################################################# #redis 配置文件,根据情况选择集群或者单机模式