Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fittrack-eureka-service

Spring Boot Eureka Server (service registry) for the Fittrack microservices.

This service runs a Netflix Eureka registry so other services can register themselves and discover each other.

Tech stack

  • Java 21
  • Spring Boot 4.0.x
  • Spring Cloud Netflix Eureka Server (Spring Cloud 2025.1.x)
  • Maven

What this service does

  • Starts a Eureka Server on port 8761.
  • Does not register itself with Eureka and does not fetch the registry (server-only mode).

Project coordinates & package

  • Maven coordinates: com.fittrack:eureka:0.0.1-SNAPSHOT
  • Spring application name: Fittrack-eureka-service
  • Base package: com.fittrack.eureka

Prerequisites

  • JDK 21 installed and JAVA_HOME set.
  • Maven wrapper is included (mvnw / mvnw.cmd), so you don’t need to install Maven globally.

Configuration

Main config file: src/main/resources/application.yaml

Current defaults:

  • server.port: 8761
  • spring.application.name: Fittrack-eureka-service
  • eureka.client.register-with-eureka: false
  • eureka.client.fetch-registry: false

Override config

You can override settings with environment variables or command-line arguments.

Examples:

  • Change port:
    • --server.port=8762

Run locally

# from the repo root
.\mvnw.cmd spring-boot:run

Then open:

Build & test

.\mvnw.cmd clean test

Build the JAR:

.\mvnw.cmd clean package

The JAR will be created under target/.

Registering other services (client example)

In another Spring Boot service that should register with Eureka, add the Eureka client dependency and configure the Eureka URL.

Typical application config:

  • eureka.client.service-url.defaultZone: http://localhost:8761/eureka/

Once the client service is running, it should appear on the Eureka dashboard.

Troubleshooting

Port 8761 already in use

Start the server on another port:

.\mvnw.cmd spring-boot:run -Dspring-boot.run.arguments="--server.port=8762"

"No Jakarta Validation provider could be found" warning

You may see a log warning about a missing Bean Validation provider. For a basic Eureka server, this is usually not critical. If you want to remove it, add a validation provider (e.g., Hibernate Validator) to the classpath.

Useful links

About

Spring Cloud Netflix Eureka service registry for the FitTrack microservices platform — runs a server-only Eureka instance on port 8761 so sibling services can register and discover each other. Built with Java 21, Spring Boot 4, and Spring Cloud 2025.1.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages