Builder for {@link SpringApplication} and {@link ApplicationContext} instances withconvenient fluent API and context hierarchy support. Simple example of a context hierarchy:
new SpringApplicationBuilder(ParentConfig.class).child(ChildConfig.class).run(args);
Another common use case is setting default arguments, e.g. active Spring profiles, to set up the environment for an application:
new SpringApplicationBuilder(Application.class).profiles("server") .defaultArgs("--transport=local").run(args);
If your needs are simpler, consider using the static convenience methods in SpringApplication instead.
@author Dave Syer