#ESTOL Easily build and run Spring Framwork based Java SE applications with ESTOL.
What about spring boot?
While the general aim of Spring Boot and ESTOL are similar, ESTOL is based on Spring 3.2
and it follows a more conservative design approach with way less under-the-hood magic.
ESTOL?
The aviation lingo acronym ESTOL stands for Extremely Short Take-Off and Landing
which describes the aim of this project in terms of Java SE main application development
quite accurately.
##Quick Start Add the following dependency to your Maven POM:
<dependencies>
<dependency>
<groupId>com.github.pellaton.estol</groupId>
<artifactId>estol</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
Write a Spring @Configuration
class containing a bean of type ApplicationExecutable
:
@Configuration
public class HelloWorldConfiguration {
@Bean
public ApplicationExecutable executable() {
return new ApplicationExecutable() {
public void run() {
System.out.println("Hello World!");
}
};
}
}
Write the main class of your application feeding the configuration class into the ApplicationRunner
:
public class HelloWorld {
public static void main(String[] args) {
ApplicationRunner.runApplication(HelloWorldConfiguration.class);
}
}