# SpringBoot FatJar vs ThinJar&SpringBoot Thin Planing

Contents

### FatJar

FatJar又叫做UberJar，就是一种超级Jar，其实就是把一个基础Jar及其依赖都打包到一个Jar里面，然后用了它就可以独立工作的Jar。总数很“重”。

### ThinJar

ThinJar就是对超级Jar相对应的Jar，“纤瘦”的Jar。只有自身的资源组合（.class，properties等等）。

Problem）。

Spring Boot, by default, generates a so-called fat JAR, a JAR with all the dependencies inside it. This has some obvious benefits, as the JAR is fully self-contained. However, the JAR size can grow considerably, and when using multiple applications you might want to reuse already downloaded dependencies to reduce the overall footprint.

 1  java -jar xx.jar 

### SpringBoot Thin Launcher原理

 1 2 3 4 5   ${groupId}${artifactId}