1. Spring Boot Auto-Configuration Principlehistorical

    1. Enable Spring Boot auto-configuration. 2. Inject AutoConfigurationImportSelector into the container and import auto-configuration classes from META-INF/spring.factories. 3. Summary. 4. Reference.

  2. Create the NioEventLoop Arrayhistorical

    1. Code to analyze 2. Parameters passed to NioEventLoop 3. NioEventLoop is a single-threaded thread pool 4. Constructor

  3. 3. Allocate a Thread and Register the Selectorhistorical

    1. Code to analyze 2. Propagate through the pipeline 3. Pass through ServerBootstrapAcceptor 4. Analyze channelRead

  4. 3. Register the Selectorhistorical

    Call path and event-loop registration

  5. 3. Register BeanPostProcessorhistorical

    1. Code to study 2. Obtain BeanPostProcessors 3. Classify them 4-7. Register each group

  6. 4. Register Read Events with the Selectorhistorical

    1. Code to analyze 2. Set a breakpoint and connect with nc 3. Propagate channelActive 4. Reach HeadContext 5. Read through AbstractUnsafe

  7. 4. Bind the Server Porthistorical

    Call path, AbstractBootstrap, AbstractUnsafe, and AbstractNioChannel

  8. Spring IoC Source: Instantiating All Non-Lazy Singleton Beanshistorical

    Source tracing of finishBeanFactoryInitialization and preInstantiateSingletons through getBean, singleton lookup and creation, BeanPostProcessors, bean instantiation, property population, initialization, proxy creation, and destruction registration.

  9. Server Startuphistorical

    Historical server-startup diagram

  10. UML Diagramhistorical

    Spring IoC UML diagram