Spring Boot Microservice with Java
Deploy a discoverable Spring Boot-based microservice with Java
microservice
UnirCs/back-end-spring-microservice-archetype
Just deployed
Spring Boot Microservice with Java Template
๐จโ๐ฉโ๐งโ๐ฆ Target Audience
This template is intended for everyone interested in deploying Spring Cloud and Spring Boot based microservices architectures.
โจ Features
With this template you will deploy a Spring Boot-based microservice with Java and Maven. Java version used is 17, but you can change this whenever you want.
This microservice comes with Spring Cloud Netflix Eureka Discovery Client inside and it will try to register itself against the Eureka Server.
You also has these dependencies included:
- Spring Boot Starder Data JPA.
- Spring Boot Starter Web.
- Spring Boot Starter Validation (Hibernate Validator)
- Spring Boot Starter Test.
- Spring Boot DevTools.
- Lombok.
- H2 in-memory database.
- Console path:
/h2-console
. - JDBC URL:
jdbc:h2:mem:testdb
. - Username:
sa
. - Password: Leave it blank.
- Console path:
A REST Controller is defined with a straightforward GET mapping for the root path.
Maven is used for dependency management.
๐ See also
Check out Spring Cloud Netflix Eureka template.
Template Content
microservice
UnirCs/back-end-spring-microservice-archetypeEUREKA_URL
Enter the following URL, replacing your-railway-internal-name-for-eureka
. http://your-railway-internal-name-for-eureka:8761/eureka
.