From a0508ef538337bd9c5a8ae2a98be03a4f05683e2 Mon Sep 17 00:00:00 2001 From: robbie Date: Fri, 31 Jul 2020 02:03:30 +0800 Subject: [PATCH] config eureka --- .../src/main/resources/application.yml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/organizationservice/src/main/resources/application.yml b/organizationservice/src/main/resources/application.yml index fa19e69..0b1285a 100644 --- a/organizationservice/src/main/resources/application.yml +++ b/organizationservice/src/main/resources/application.yml @@ -15,19 +15,19 @@ #eureka.client.register-with-eureka=true #eureka.client.service-url.defaultZone = http://192.168.21.120:8761/eureka/ -#eureka: -# instance: -# prefer-ip-address: true -# -# client: -# fetch-registry: true -# register-with-eureka: true -# service-url: -# defaultZone: http://140.143.45.252:8761/eureka/ +eureka: + instance: + prefer-ip-address: true + + client: + fetch-registry: true + register-with-eureka: true + service-url: + defaultZone: http://192.168.1.84:8761/eureka/ spring: - application: - name: organization-service +# application: +# name: organization-service zipkin: base-url: http://127.0.0.1:9411 sender: @@ -80,6 +80,6 @@ spring: datasource: username: root password: 19811981 - url: jdbc:mysql://127.0.0.1:3306/organizations + url: jdbc:mysql://localhost:3306/organizations?useSSL=true&serverTimezone=UTC driver-class-name: com.mysql.cj.jdbc.Driver