Java
234 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- 2.32 Autowired Principlehistorical
Class inheritance diagram and principle analysis of Spring's AutowiredAnnotationBeanPostProcessor.
- Spring Transaction Source Analysishistorical
1. Enable transaction management. 2. TransactionManagementConfigurationSelector imports AutoProxyRegistrar and ProxyTransactionManagementConfiguration. 3. Study AutoProxyRegistrar. 4. Study ProxyTransactionManagementConfiguration and transaction interception.
- 2.34 Custom Startershistorical
Two questions behind a custom Spring Boot starter and a complete hello-spring-boot-starter example.
- 2.35 Usagehistorical
Create a project, configure pom.xml, and use Spring Boot caching with Application, TestController, and TestService.
- Spring Boot Jar Startup Principlehistorical
1. Experiment. 2. Structure of an executable Jar. 3. How the program entry point is found. 4. Jar packages that can start without the java -jar command. 5. Reference.
- MyBatis Auto-Configurationhistorical
How Spring Boot enables MyBatis auto-configuration and how AutoConfiguredMapperScannerRegistrar determines which package to scan for @Mapper interfaces.
- Spring MVC Auto-Configuration Principlehistorical
1. Auto-configuration classes pre-imported by spring-boot-starter-web. 2. How custom configuration takes effect. 3. Why @EnableWebMvc disables Spring Boot MVC auto-configuration. 4. Reference.