Do you know how does ๐๐ฅ๐ง๐๐ฃ๐๐ผ๐ฅ๐ฅ๐ก๐๐๐๐ฉ๐๐ค๐ฃ.๐ง๐ช๐ฃ() work internally?
The ๐๐ฅ๐ง๐๐ฃ๐๐ผ๐ฅ๐ฅ๐ก๐๐๐๐ฉ๐๐ค๐ฃ class provides a convenient way to bootstrap a Spring application that is started from a main() method. By default, ๐๐ฅ๐ง๐๐ฃ๐๐ผ๐ฅ๐ฅ๐ก๐๐๐๐ฉ๐๐ค๐ฃ class will perform the following steps to bootstrap your application: 1. Creates an ๐๐ข๐ฅ๐ฉ๐ฎ ๐๐ฃ๐ซ๐๐ง๐ค๐ฃ๐ข๐๐ฃ๐ฉ ๐ค๐๐๐๐๐ฉ. 2. Find the external configuration file like ๐๐ฅ๐ฅ๐ก๐๐๐๐ฉ๐๐ค๐ฃ.๐ฅ๐ง๐ค๐ฅ๐๐ง๐ฉ๐๐๐จ / ๐๐ฅ๐ฅ๐ก๐๐๐๐ฉ๐๐ค๐ฃ.๐ฎ๐ข๐ก from the classpath of the application and load these properties into the environment object. 3. Print ๐๐ฅ๐ง๐๐ฃ๐ ๐ฝ๐๐ฃ๐ฃ๐๐ง. 4. Identifies the type of the application by using property ๐๐๐๐ผ๐ฅ๐ฅ๐ก๐๐๐๐ฉ๐๐ค๐ฃ๐๐ฎ๐ฅ๐ and instantiates an appropriate IOC Container. 5. Instantiates the ๐๐ฅ๐ง๐๐ฃ๐๐๐๐๐ฉ๐ค๐ง๐๐๐จ and register with IOC Container. 6. Initialise the IOC Container by executing ๐ผ๐ฅ๐ฅ๐ก๐๐๐๐ฉ๐๐ค๐ฃ๐พ๐ค๐ฃ๐ฉ๐๐ญ๐ฉ๐๐ฃ๐๐ฉ๐๐๐ก๐๐ฏ๐๐ง. 7. Prepare the context by ๐๐ง๐๐ฅ๐๐ง๐๐พ๐ค๐ฃ๐ฉ๐๐ญ๐ฉ. 8. Refresh the context by ...