Java
229 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- 2.53 Usagehistorical
DbConfig and Service examples demonstrate Spring transaction usage and the relationship between data-source configuration and transactional methods.
- Circular Dependencieshistorical
Circular Dependencies: Suppose there are two Beans, Bean1 and Bean2. If Bean1 depends on Bean2, and Bean2 depends on Bean1, then when Spring creates Bean1 it first needs to create Bean2, while creating Bean2 requires creating Bean1 first.
- How to Load Beans A and B in Order in Springhistorical
Controller and Service examples examine loading relationships between Spring beans and ways to control their initialization order.
- 2.56 1. Create NioEventLoopGrouphistorical
NioEventLoopGroup manages multiple NioEventLoops and accepts Runnable tasks. These notes trace how the group is created through its constructors.
- 2. Bootstrap Creationhistorical
After creating ServerBootstrap, Channel types, handlers, and options must be configured. These notes focus on how the Channel type is set.
- 3. Bind the Porthistorical
These notes follow bind calls to examine how Netty port-binding requests reach the concrete Channel implementation.
- 1. Detect a New Connectionhistorical
When a connection arrives, NioEventLoop handles an OP_ACCEPT event. These notes trace connection detection with breakpoints and a client connection.
- Pipeline Initializationhistorical
Each Netty Channel has its own pipeline, created during AbstractChannel construction. These notes examine pipeline initialization.
- 1. Creating the Serverhistorical
Starting from the server bind method, these notes follow the call chain to AbstractBootstrap.doBind and examine server creation.
- 1. Create the Spring Containerhistorical
Creating a Spring container triggers refresh. These notes trace container initialization and bean retrieval from ApplicationContext creation.