Member-only story

Spring Boot | How to build layered jar

Egor Voronianskii
5 min readJan 13, 2024

In this article, I will show you how you can build a simple CRUD application and create a layered jar.
The inventory service manages inventory, such as left stocks, i.e., some drinks, merch, or something else that can be stored in the warehouse.

Reasons for choosing layered jar:

  • If you have an extensive application with different dependencies
  • If you need flexibility in layer updates

Reasons for choosing Uber Jar:

  • If you have a simple application with a relatively small number of dependencies
  • If you need simplicity in the deployment process

Implementation

We will start by developing two core services before developing the inventory service

Creation of the project in Intellij IDEA
Dependencies of inventory service

Before developing a controller and services, think about database structure. Let’s draw a simple entity relationship diagram.

What is ERD?

Definition from Wikipedia

An entity–relationship model (or ER model) describes interrelated things of interest in a…

--

--

Egor Voronianskii
Egor Voronianskii

Written by Egor Voronianskii

I am a Software Engineer, JVM enthusiast, cat - lover, part-time surfer.

No responses yet