In our application, we used SpringApplicationBuilder in the starter application. starter is a simple application that programmatically runs actual instances of the application.
The number of running processes and the web / standalone process type will be passed as an argument to the starter application based on the arguments that the application instances will be launched. we used -w to run as a state management web application.
boolean isWeb =
There is another way to do the same.
SpringApplication sp = new SpringApplication(SpringApplicationBuilder.class); sp.setWebEnvironment(false); sp.run(args);
We can also customize banner registrars with SpringApplicationBuilder .
read the document for greater benefit
source share