--Mechanism / framework that makes it easy to create Spring-based applications --Build results are combined into a single jar file
--The AP server is included, so there is no need to prepare an AP server for each environment.
--The fun of starting with java -jar
--Since all dependent libraries including AP server are included, the file size becomes large.
Hello.java
public class Hello {
public static void main(String... args) {
System.out.println("Hello World");
}
}
$ javac Hello.java
$ java Hello
Hello World
https://docs.oracle.com/javase/jp/8/docs/api/javax/tools/JavaCompiler.html
|-LightweightJarExecutor.class :
|→ Code that extracts the source from its own jar, compiles and executes it
|-...
`-src/ :Spring Boot and a set of dependent library sources
|-ch/ : logback
|-com/ :jackson or com.like sun
|-javax/ :javaee standard API
|-META-INF/
|-org/ : Spring, hibernate, JBoss, Tomcat, etc...
`-sample/ :Spring MVC Hello World
JavaCompiler
JarLauncher
) from the output destination of the compilation result using ʻURLClassLoader`.main ()
method of JarLauncher
Recommended Posts