Java
234 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- 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.
- Create the NioEventLoop Arrayhistorical
1. Code to analyze 2. Parameters passed to NioEventLoop 3. NioEventLoop is a single-threaded thread pool 4. Constructor
- 3. Allocate a Thread and Register the Selectorhistorical
1. Code to analyze 2. Propagate through the pipeline 3. Pass through ServerBootstrapAcceptor 4. Analyze channelRead
- 3. Register BeanPostProcessorhistorical
1. Code to study 2. Obtain BeanPostProcessors 3. Classify them 4-7. Register each group
- 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
- 4. Bind the Server Porthistorical
Call path, AbstractBootstrap, AbstractUnsafe, and AbstractNioChannel
- 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.