Configuring a Main Class in Spring Boot
SpringApplication.run(Classname.class, args) bootstraps a spring application as a stand-alone application from the main method. It creates an appropriate ApplicationContext instance and load beans. By default, if the main class isn't…