Executable Java class to be used as a base for the Fabric-managed Spring Boot applications. Its main purpose is to eliminate the custom code bootstrapping the application, so end-users could create Spring Boot managed process via Fabric without any custom wiring.
{@link FabricSpringApplication} can be used in the conjunction with the Fabric Jar Managed Process installer (justas demonstrated on the snippet below).
process:install-jar -m io.fabric8.process.spring.boot.container.FabricSpringApplication my.group.id my-artifact 1.0
Keep in mind that you don't have to use {@link FabricSpringApplication} in order to use Fabric goodies for SpringBoot (like Fabric starters). However we recommend to use this class as an entry point for your Fabric SpringBoot integration, as it implements our opinionated view of the proper Fabric+Boot wiring.
In order to specify packages that should be scanned for additional {@code @Component} and {@code @Configuration} classes, usestandard Spring Boot {@code spring.main.sources} system property. For example if your project {@code @Configuration} classes are located inthe {@code com.example.project} package, you can use the following command to install your jar as a managed process:
process:install-jar -m io.fabric8.process.spring.boot.container.FabricSpringApplication --jvm-options=-Dspring.main.sources=com.example.project my.group.id my-artifact 1.0