Mise a jour DisoveryService

This commit is contained in:
Faure Paul 2021-12-10 09:31:36 +01:00
parent 6ccc89a477
commit 0830ed91d1
3 changed files with 13 additions and 1 deletions

View file

@ -28,6 +28,13 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-config-client -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-client</artifactId>
<version>3.1.0</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>

View file

@ -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) {

View file

@ -1 +1,4 @@
server.port=8761
spring.application.name=DiscoveryService
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false