Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| ||||
Sprin boot - Interview Questions and Answers for 'Hexaware' - 1 question(s) found - Order By Newest | ||||
| ||||
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. | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
![]() | ||||
![]() | ||||
![]() | ||||
![]() | ||||
![]() | ||||
![]() | ||||
![]() | ||||
![]() | ||||
![]() | ||||
![]() | ||||