SpringApplication.run analysis
The primary analysis method in two parts, SpringApplication instantiated, the second is the run method;
SpringApplication
This class is primarily to do the following four things:
1, infer the type of application is a common project or Web project
2, to find and load all available initializer, attribute set to the initializers
3, find all the applications listener, set the properties to listeners
4, the class definition of inference and the main method is provided, the operation to find the main class
View constructor:
run process analysis
This article only learn to share.
No text from the public: mad God said