Java
229 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Spring Boot Startup Principlehistorical
These notes start with a Spring Boot application's startup statement and trace the startup process while omitting simple nested calls.
- Create Executorhistorical
These notes trace Netty Executor creation, starting with the thread factory and executor initialization.
- 2. Create NioSocketChannelhistorical
Netty wraps accepted Java NIO connections in NioSocketChannel. These notes trace construction of that object and its parent classes.
- Adding and Removing ChannelHandlershistorical
These notes begin with methods such as DefaultChannelPipeline.addLast and trace ChannelHandler insertion, validation, and removal.
- 2. Server Initializationhistorical
These notes follow bind and doBind calls to trace the work performed during Netty server initialization.
- 2. Call BeanFactoryPostProcessor's postProcess Methodhistorical
Spring invokes BeanFactoryPostProcessors during container refresh. These notes trace their execution from invokeBeanFactoryPostProcessors.
- Spring Boot Auto-Configuration Principlehistorical
@SpringBootApplication connects annotations such as @EnableAutoConfiguration. These notes trace how Spring Boot auto-configuration takes effect from those entry points.
- Create the NioEventLoop Arrayhistorical
NioEventLoopGroup creates individual NioEventLoops through newChild. These notes follow that call to examine event-loop-array initialization.
- 3. Allocate a Thread and Register the Selectorhistorical
After a new connection passes through the pipeline, it needs a processing thread and Selector registration. These notes trace the related calls from connection acceptance.
- 3. Register the Selectorhistorical
Starting from the server's bind call, these notes trace how a Channel is assigned an event loop and registered with the Selector.