diff --git a/pom.xml b/pom.xml
index 8f8813fca1cbb2f7b812f43f4cf34b875233545b..830684fac24fc848ecf13fdd10a575be0618b575 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org</groupId>
@@ -7,14 +9,14 @@
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
- <name>user_management_service</name>
+ <name>usermanagement-service</name>
<!-- Spring Boot Parent -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.0</version>
- <relativePath/> <!-- Lookup parent from repository -->
+ <relativePath /> <!-- Lookup parent from repository -->
</parent>
<properties>
@@ -73,6 +75,12 @@
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
</dependency>
+
+ <dependency>
+ <groupId>org.springframework.cloud</groupId>
+ <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
+ <version>4.0.3</version>
+ </dependency>
</dependencies>
<build>
@@ -142,4 +150,4 @@
</plugin>
</plugins>
</build>
-</project>
+</project>
\ No newline at end of file
diff --git a/src/main/java/com/miage/glop/UserManagementApp.java b/src/main/java/com/miage/glop/UserManagementApp.java
index 937ae687e679bfe8a20b28e7f8a478f462b3f0fb..0ac372b6a7e27c0a12de7c9676453eb7687c2d8b 100644
--- a/src/main/java/com/miage/glop/UserManagementApp.java
+++ b/src/main/java/com/miage/glop/UserManagementApp.java
@@ -2,8 +2,10 @@ package com.miage.glop;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@SpringBootApplication
+@EnableDiscoveryClient
public class UserManagementApp {
public static void main(String[] args) {
SpringApplication.run(UserManagementApp.class, args);