Skip to content

P4normos/springboot-config-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Cloud Config Server with Microservice

This project demonstrates a Spring Cloud Config Server that provides centralized configuration to a microservice.

Requirements

  • Java 25+
  • Maven
  • Docker
  • Docker Compose

How to Run

1. Build the Config Server and Microservice

Navigate into each module and build them using Maven:

cd config-server
mvn clean package

cd ../microservice
mvn clean package

2. Run with Docker Compose

Go back to the root directory and start both services:

cd ..
docker-compose up --build

3. Verify

Once the containers are running:

  • Open Config Server in your browser:
    http://localhost:8080

    You should see a JSON response with configuration values (for example, the app.property value).

  • The microservice fetches its configuration from the Config Server at startup.

4. Stop

To stop all containers:

docker-compose down

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published