A Spring Cloud Netflix Eureka Server for service discovery in the EAD (Ensino à Distância) payments microservices ecosystem.
This application serves as a service registry for the EAD payments microservices architecture. It allows services to find and communicate with each other without hardcoding hostname and port information. Services register with the Eureka Server and the Eureka Server knows all client applications running on each port and IP address.
- Java 21
- Spring Boot 3.3.5
- Spring Cloud Netflix Eureka Server
- Gradle
- JDK 21
- Gradle
The application is configured to run on port 8761 (the default port for Eureka Server). Key configuration settings in application.yml include:
spring:
application:
name: base-payments-registry
server:
port: 8761
eureka:
client:
register-with-eureka: false
fetch-registry: false
instance:
prefer-ip-address: false./gradlew build
./gradlew bootRun./gradlew build
java -jar build/libs/base-payments-registry-0.0.1-SNAPSHOT.jarOnce the application is running, you can access the Eureka dashboard at:
http://localhost:8761
The dashboard provides information about registered services, their status, and other details.
To register a service with this Eureka Server, add the following dependencies and configuration to your client application:
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
}eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/The application exposes all Spring Boot Actuator endpoints for monitoring:
management:
endpoints:
web:
exposure:
include: "*"You can access these endpoints at:
http://localhost:8761/actuator
[Add your license information here]
[Add your contact information here]