Issue
When I open a jar package, there shows the BOOT-INF
and META-INF
folders, what's the function of them?
Solution
The META-INF
folder is the home for the MANIFEST.MF
file. This file contains meta data about the contents of the JAR. For example, there is an entry called Main-Class
that specifies the name of the Java class with the static main()
for executable JAR files.
BOOT-INF :
Spring Boot applications load from the BOOT-INF
folder. Therefore the application classes must be placed in a nested BOOT-INF/classes
directory. Dependencies should be placed in a nested BOOT-INF/lib
directory.
more about Spring Boot packaging
Answered By - Istiaque Hossain