DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Related

  • Distributed Tracing System (Spring Cloud Sleuth + OpenZipkin)
  • Google Cloud Pub/Sub: Messaging With Spring Boot 2.5
  • Spring Boot Microservices + Apache Camel: A Hello World Example
  • Configuring Java Apps With Kubernetes ConfigMaps and Helm

Trending

  • How To Build Resilient Microservices Using Circuit Breakers and Retries: A Developer’s Guide To Surviving
  • Vibe Coding With GitHub Copilot: Optimizing API Performance in Fintech Microservices
  • Integration Isn’t a Task — It’s an Architectural Discipline
  • Intro to RAG: Foundations of Retrieval Augmented Generation, Part 1
  1. DZone
  2. Coding
  3. Frameworks
  4. Spring Boot Thin JAR Builder for Running Java Microservices

Spring Boot Thin JAR Builder for Running Java Microservices

Let's try thinking thin — in this tutorial, we'll see how to use Spring Boot Thin JAR Builder to run Spring Boot microservices.

By 
Tetiana Fydorenchyk user avatar
Tetiana Fydorenchyk
·
Aug. 22, 18 · Tutorial
Likes (5)
Comment
Save
Tweet
Share
11.0K Views

Join the DZone community and get the full member experience.

Join For Free

Today, we'd like to continue the topic about building microservices and move from Fat (Uber) JAR to Thin JAR for Spring Boot projects. Thin JAR represents compiled and packaged application code (business logic) of the project together with the third-party libraries it depends on. Compared to Fat, it does not contain application server runtime by default, so the size of a Thin archive is much smaller. The runtime and dependencies are automatically downloaded during the first launch and stored locally in the ~/.m2/repository.

To showcase the process of building a framework inside the Java Engine with Thin JAR for running microservice architecture, we'll use a pre-configured package of Maven and the popular Spring Boot.

Installation of Spring Boot Thin JAR Builder

Get started by accessing the Jelastic dashboard. Find the . Spring Boot Thin JAR Builder in the Marketplace and click Install.

Or, you can import the required manifest from GitHub.

If required, change the installation settings, such as environment name or Git repository link, to a custom Spring Boot project. Then press "install."

When the installation and building of the project are completed, a corresponding message appears. You still need to wait a few minutes for the deploy to be finished (feel free to track the process in context in the Tasks panel). In the default implementation, the deployment is done under
"api/greeting."

In a few minutes, you can make sure that application is up and running by pressing "Open in browser."

The topology for Spring Boot Thin looks as in the picture below.

java maven tutorial

Feel free to run as many microservices as required for your project without any complexity while building them. In the upcoming articles, we'll cover the steps of getting Fat, Thin, or Skinny JAR files for Thorntail, Vert.x, and DropWizard applications. Stay tuned and get more benefits from microservice architecture.

Spring Framework Spring Boot JAR (file format) microservice Java (programming language)

Published at DZone with permission of Tetiana Fydorenchyk, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Distributed Tracing System (Spring Cloud Sleuth + OpenZipkin)
  • Google Cloud Pub/Sub: Messaging With Spring Boot 2.5
  • Spring Boot Microservices + Apache Camel: A Hello World Example
  • Configuring Java Apps With Kubernetes ConfigMaps and Helm

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!