1. What happens after the start of main class?
Here is our main class.
The line no 12 is where the magic starts.
There is a static run method in the SpringApplication class. When this static method is called two things happens.
1. Object of SpringApplication is created which takes your passed class name. i.e. DepartmentServiceApplication.class.
2. After the successful creation of SpringApplication class object its run method is called.
Once the run method executed successfully then it returns the ApplicationContext type object.
Wait!!
Are you thinking what happens at the time of SpringApplication object creation?
Are you thinking what happens when run method executed?
Check out my next blog till then, Jai Hind!
Comments
Post a Comment