How Spring Boot Fat Jar Works

How Spring Boot Fat Jar Works

<dependencies> <dependency> 
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <version>2.5.0</version>
</dependency>
</dependencies>

<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <version>2.5.0</version>
</plugin>
</plugins>

Shading

Uber Jar

Spring Boot Way Of Loading Uber/Fat Jar

  • project classes
  • third-party dependent jars
  • and spring related ClassLoaders
spring boot class loading

How Spring Boot Class Loader Works

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store