Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. The Spring Application starts with the main() method. Spring Application has a Main Class where main() method has a static method run() which takes two arguments, one is class type and second is string array. Spring Application will bootstrap our application, starts auto-configured tomcat web server.When SpringApplication.run() command is invoked, the Application Context is created. The createApplicationContext method checks if it is a web or standalone application based on the type it creates for the context.When the constructor of the context is invoked, it will register the annotated class beans with the context. All your @Repository, @Component, @Service, and Controller beans will be registered and the context is returned. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve   Asked in 1 Companies | ||||
Related Questions | ||||
What is Spring Boot ? | ||||
How to use spring boot to configure different datasources ? | ||||
Which spring boot version are you working with ? | ||||
Which spring boot version are you working with ? | ||||
Which spring boot version are you working with ? | ||||
Can we use Prototype Bean scope with Autowiring ? | ||||
Can you explain spring boot project Architecture? | ||||
What is the difference between try-catch and @ExceptionHandler in Java/Spring Boot? | ||||
Difference between spring and spring boot | ||||