Skip to content

deepaksorthiya/spring-boot-3-microservice

Repository files navigation

Spring Boot Starter Microservice Project

Java Maven Build Test Docker Spring Boot


🚀 Overview

A modern Spring Boot 3 microservice starter project featuring:

  • Spring Cloud Config Server
  • Netflix Eureka Discovery Service
  • Spring Cloud Gateway
  • Docker Compose integration
  • Modular microservice architecture
  • Distributed Tracing Using Zipkin

📦 Clone the Repository

git clone https://github.com/deepaksorthiya/spring-boot-3-microservice.git
cd spring-boot-3-microservice

🐳 Getting Started with Docker

Start all required docker services using Docker Compose:

docker compose up

⚙️ Configuration

Update the configuration service properties:

  1. Open Config Server spring-cloud-configuration-service/src/main/resources/application.properties
  2. Set/verify the following properties values:
server.port=8888
spring.cloud.config.server.native.search-locations=file:///${user.dir}/config-files-all

Note:
For Windows OS configuration files are stored, e.g. file:///${user.dir}/config-files-all . On Windows, you need an extra "/" in the file URL if it is absolute with a drive prefix. For Linux/Mac-OS use file://${user.dir}/config-files-all

For advanced configuration (e.g., using Git or S3), refer to the Spring Cloud Config documentation.


🏁 Service Startup Order

Start the following services in order:

  1. spring-cloud-configuration-service
  2. spring-cloud-netflix-discovery-service
  3. spring-cloud-gateway-service

Then start the remaining microservices:

All microservices are under spring-boot-api-microservices folder.

  • department-service
  • employee-service
  • organization-service
  • service-one

Use below command to run each services.

mvn spring-boot:run

🧪 API Testing


📚 Resources

About

Spring Boot 3 JDK17 Microservice Example

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages