GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - devcom33/Learn-Microservices-with-Spring-Boot-and-Spring-Cloud: A simple Spring Boot microservices setup with Spring Cloud and Spring Data JPA. Includes Config Server, Eureka Server, Company Service, and Gateway Service with basic service registration, discovery, and routing.

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
company-service
company-service
 
 
config-service
config-service
 
 
proxy-service
proxy-service
 
 
register-service
register-service
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

Microservices with Spring Boot

Overview

A simple microservices architecture using Spring Boot, Spring Cloud, and Spring Data JPA.

Includes:

  • Config Server
  • Eureka Server
  • Company Service
  • Proxy/Gateway Service

Services

Config Service

  • Port: 8888
  • Provides centralized configuration for all services.
  • Example URL: http://localhost:8888/company-service/default

Eureka Server

  • Port: 8761
  • Service registry for discovery.
  • Dashboard: http://localhost:8761

Company Service

  • Port: 8082
  • JPA repository exposed via Spring Data REST.
  • Example endpoint:
GET http://localhost:8082/companies

Proxy / Gateway Service

  • Port: 8080
  • Routes requests to backend services via Spring Cloud Gateway.
  • Example endpoint through the gateway (proxying to company service):
GET http://localhost:8080/company-service/companies

How to Run

Start each service from the project root using Maven. Example commands:

# Start Config Service
mvn spring-boot:run -pl config-service

# Start Eureka Server (service registry)
mvn spring-boot:run -pl register-service

# Start Company Service
mvn spring-boot:run -pl company-service

# Start Proxy / Gateway Service
mvn spring-boot:run -pl proxy-service

Notes

  • Make sure ports 8888, 8761, 8082 and 8080 are available.
  • Start the Config Service before other services if they rely on centralized configuration.
  • Start the Eureka Server before services that register with it (or run both in parallel if using a locally cached config during development).

Troubleshooting

  • If a service fails to start, check its application logs for port conflicts or missing configuration.
  • For Spring Cloud Gateway routing issues, verify service IDs and routes in the gateway configuration.

Enjoy building with Spring Boot microservices!

About

A simple Spring Boot microservices setup with Spring Cloud and Spring Data JPA. Includes Config Server, Eureka Server, Company Service, and Gateway Service with basic service registration, discovery, and routing.

Topics

microsspringspring-boot-microservicespring-cloud-configspring-cloud-eurekaspring-cloud-gatewayspring-cloud-netflix

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.