diff --git a/DiscoveryService/pom.xml b/DiscoveryService/pom.xml index 408d6a2..3c7e4c3 100644 --- a/DiscoveryService/pom.xml +++ b/DiscoveryService/pom.xml @@ -28,6 +28,13 @@ spring-boot-starter-test test + + + + org.springframework.cloud + spring-cloud-config-client + 3.1.0 + diff --git a/DiscoveryService/src/main/java/fr/insa/arm/DiscoveryService/DiscoveryServiceApplication.java b/DiscoveryService/src/main/java/fr/insa/arm/DiscoveryService/DiscoveryServiceApplication.java index 15c288c..8eeb055 100644 --- a/DiscoveryService/src/main/java/fr/insa/arm/DiscoveryService/DiscoveryServiceApplication.java +++ b/DiscoveryService/src/main/java/fr/insa/arm/DiscoveryService/DiscoveryServiceApplication.java @@ -2,8 +2,10 @@ package fr.insa.arm.DiscoveryService; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; @SpringBootApplication +@EnableEurekaServer public class DiscoveryServiceApplication { public static void main(String[] args) { diff --git a/DiscoveryService/src/main/resources/application.properties b/DiscoveryService/src/main/resources/application.properties index 8b13789..cd2c7fd 100644 --- a/DiscoveryService/src/main/resources/application.properties +++ b/DiscoveryService/src/main/resources/application.properties @@ -1 +1,4 @@ - +server.port=8761 +spring.application.name=DiscoveryService +eureka.client.register-with-eureka=false +eureka.client.fetch-registry=false \ No newline at end of file