diff --git a/edge-service/src/main/java/dev/knowhowto/bookingdb/edge/config/ServicesProperties.java b/edge-service/src/main/java/dev/knowhowto/bookingdb/edge/config/ServicesProperties.java index 9a5f1a6..0a88e79 100644 --- a/edge-service/src/main/java/dev/knowhowto/bookingdb/edge/config/ServicesProperties.java +++ b/edge-service/src/main/java/dev/knowhowto/bookingdb/edge/config/ServicesProperties.java @@ -2,6 +2,6 @@ import org.springframework.boot.context.properties.ConfigurationProperties; -@ConfigurationProperties(prefix = "knowhowto.services") +@ConfigurationProperties(prefix = "iqkv.service-discovery.services") public record ServicesProperties(String dashboardService) { } diff --git a/edge-service/src/main/resources/application-local.yml b/edge-service/src/main/resources/application-local.yml index 6d0388c..50afa93 100644 --- a/edge-service/src/main/resources/application-local.yml +++ b/edge-service/src/main/resources/application-local.yml @@ -15,5 +15,6 @@ server : port : 2999 iqkv : - services : - dashboard-service : http://localhost:3000 + service-discovery : + services : + dashboard-service : http://localhost:3000 diff --git a/edge-service/src/main/resources/application.yml b/edge-service/src/main/resources/application.yml index 5fa27df..2dc7836 100644 --- a/edge-service/src/main/resources/application.yml +++ b/edge-service/src/main/resources/application.yml @@ -91,5 +91,6 @@ management : prometheus : enabled : true iqkv : - services : - dashboard-service : ${DASHBOARD_SERVICE_URL:http://dashboard-service} + service-discovery : + services : + dashboard-service : ${DASHBOARD_SERVICE_URL:http://dashboard-service} diff --git a/edge-service/src/test/resources/application.yml b/edge-service/src/test/resources/application.yml index 09f5fa6..8e9f26e 100644 --- a/edge-service/src/test/resources/application.yml +++ b/edge-service/src/test/resources/application.yml @@ -3,5 +3,6 @@ spring : name : edge-service iqkv : - services : - dashboard-service : http://dashboard-service + service-discovery : + services : + dashboard-service : http://dashboard-service