From bbe830646113107980d116ac2340417da4722710 Mon Sep 17 00:00:00 2001 From: Szakalakamaka Date: Thu, 15 Oct 2020 13:20:22 +0200 Subject: [PATCH] testing cloud configurations --- .idea/workspace.xml | 42 ++++++++++++----------- src/main/resources/application.properties | 7 ++-- target/classes/application.properties | 4 +++ target/classes/bootstrap.properties | 2 -- target/classes/bootstrap.yml | 23 ------------- 5 files changed, 31 insertions(+), 47 deletions(-) delete mode 100644 target/classes/bootstrap.properties delete mode 100644 target/classes/bootstrap.yml diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f430140..d9df1dd 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -23,9 +23,11 @@ - - + + + + @@ -696,41 +698,41 @@ - + - + - + - + - + - + - + - + @@ -778,14 +780,14 @@ - + - + diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 4071bd9..b11c183 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -15,8 +15,11 @@ spring.cloud.config.retry.max-intervals = 1000 #spring.cloud.config.username = SpringConfigUsername #spring.cloud.config.password = SpringConfigPassword -eureka.client.service-url.defaultZone=http://netflix:eureka@localhost:8761/eureka/ - +eureka.instance.preferIpAddress = true +eureka.instance.hostname = klaus +eureka.client.registerWithEureka = true +eureka.client.fetchRegistry = true +eureka.client.service-url.defaultZone=http://netflix:eureka@eureka:8761/eureka/ #logging: spring.output.ansi.enabled = always diff --git a/target/classes/application.properties b/target/classes/application.properties index 4071bd9..cace0d9 100644 --- a/target/classes/application.properties +++ b/target/classes/application.properties @@ -15,6 +15,10 @@ spring.cloud.config.retry.max-intervals = 1000 #spring.cloud.config.username = SpringConfigUsername #spring.cloud.config.password = SpringConfigPassword +eureka.instance.preferIpAddress = true +eureka.instance.hostname = klaus +eureka.client.registerWithEureka = true +eureka.client.fetchRegistry = true eureka.client.service-url.defaultZone=http://netflix:eureka@localhost:8761/eureka/ diff --git a/target/classes/bootstrap.properties b/target/classes/bootstrap.properties deleted file mode 100644 index d223817..0000000 --- a/target/classes/bootstrap.properties +++ /dev/null @@ -1,2 +0,0 @@ -eureka.client.service-url.defaultZone=http://netflix:eureka@localhost:8761/eureka/ - diff --git a/target/classes/bootstrap.yml b/target/classes/bootstrap.yml deleted file mode 100644 index 87d10e9..0000000 --- a/target/classes/bootstrap.yml +++ /dev/null @@ -1,23 +0,0 @@ -eureka: - client: - serviceUrl: - defaultZone: http://netflix:eureka@localhost:8761/eureka/ - -spring: - application: - name: klaus - profiles: - active: DEV - cloud: - config: - discovery: - enabled: true - service-id: klaus-config-service - fail-fast: true - retry: - initial-interval: 1500 - multiplier: 1.5 - max-attempts: 10000 - max-interval: 1000 -server: - port: 8097