Skip to content
Snippets Groups Projects
Commit 3cd3faa9 authored by Abdellatif Kebraoui's avatar Abdellatif Kebraoui
Browse files

[FEAT] remove Eureka client dependency and configuration; clean up pom.xml and related classes

parent 0b55a210
No related branches found
No related tags found
No related merge requests found
...@@ -59,18 +59,6 @@ ...@@ -59,18 +59,6 @@
<artifactId>spring-boot-starter-data-jpa</artifactId> <artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency> </dependency>
<!-- Eureka client - Now conditionally activated based on profile -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
<!-- Only active in non-cloud profiles -->
<exclusions>
<exclusion>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Database drivers --> <!-- Database drivers -->
<dependency> <dependency>
......
package com.miage.glop.beneficiary; package com.miage.glop.beneficiary;
import jakarta.annotation.Nonnull;
import jakarta.persistence.*; import jakarta.persistence.*;
import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.PastOrPresent;
import jakarta.validation.constraints.Size; import jakarta.validation.constraints.Size;
@Entity @Entity
......
package com.miage.glop.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* Eureka configuration that's only activated for non-cloud profiles.
* This ensures Eureka client is only used in local development.
*/
@Configuration
@EnableDiscoveryClient
@Profile("!cloud") // Only active when NOT in cloud profile
public class EurekaConfig {
// Configuration is handled through properties files
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment