Add micro-boot to the classpath
Maven
<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-boot</artifactId>
<version>0.62</version>
</dependency>
Gradle
compile 'com.aol.microservices:micro-boot:0.62'
And also add Grizzly and Jersey (micro-grizzly-with-jersey will add both)
Maven
<dependency>
<groupId>com.aol.microservices</groupId>
<artifactId>micro-grizzly-with-jersey</artifactId>
<version>0.62</version>
</dependency>
Gradle
compile 'com.aol.microservices:micro-grizzly-with-jersey:0.62'
public class SimpleApp {
public static void main(String[] args){
new MicrobootApp(()->"test-app").run();
}
}
micro-boot allows you to use Microserver plugins & jax-rs support with Spring Boot back ends.
micro-boot apps are started via the MicrobootApp (equivalent to MicroserverApp) and configured via the Microboot annotation (equivalent to the Microserver annotation)