SpringApplication.run do what thing?

SpringApplication.runHe made a total of two things, namely,

  • Creating SpringApplicationObjects

  • Use the created SpringApplicationobject, call runMethodology

in conclusion:

Interviewer: I see on your resume that says you are familiar with SpringBoot, that you talk about, SpringApplication.run have done?

No fan of fertilizer towards the public: SpringApplication.run made a total of two things, one is to create SpringApplication object when the object is initialized, find the event listener configuration, and save them the second thing is to run the run method, this. when will you just saved according to the current event listener to trigger the timing of various events, such as the initialization container, the container is created, etc. will also refresh IoC container, scanning module, create, load and so on. I have two things read the source code that I have to draw you a map and detailed talk about.

Source: micro-channel public number: IT ranch interviewer asked me, SpringApplication.run do what thing? 

Guess you like

Origin www.cnblogs.com/Small-sunshine/p/10966830.html