InterviewSolution
Saved Bookmarks
| 1. |
How does a spring boot application get started? |
|
Answer» Just like any other Java program, a Spring BOOT APPLICATION MUST have a main method. This method serves as an ENTRY point, which invokes the SpringApplication#run method to bootstrap the application. @SpringBootApplication public class MyApplication { public static void main(String[] args) { SpringApplication.run(MyApplication.class); // other STATEMENTS } } |
|