---
title: "Deploy Spring Boot Microservice with Java"
description: "Deploy a discoverable Spring Boot-based microservice with Java"
category: "Starters"
url: https://railway.com/deploy/JvYvDw
---

# Deploy Spring Boot Microservice with Java

Deploy a discoverable Spring Boot-based microservice with Java

**[Deploy Spring Boot Microservice with Java on Railway](https://railway.com/template/JvYvDw)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/JvYvDw/manifest.json

- **Creator:** UNIR - MISSI's Projects
- **Category:** Starters
- **Total deploys:** 132

## Template content

### microservice

- **Source:** https://github.com/UnirCs/back-end-spring-microservice-archetype
- **Public domain:** Yes

## Documentation

## 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.

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](https://railway.app/template/HM8cFB?referralCode=jesus-unir) template.




## Similar templates

- [Openfront Gym](https://railway.com/deploy/openfront-gym) — Opensource Mindbody alternative based on Next.js and Keystone.js
- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [Next.js + Prisma + PostgreSQL Starter](https://railway.com/deploy/nextjs-prisma-postgres) — Deploy a Next.js app with Prisma ORM and PostgreSQL in one click.

Open this page in a browser: https://railway.com/deploy/JvYvDw
