1. 2.29 Bean作用域historical

    1. 作用域分类 - singleton:每次从容器中获取的bean是同一个 - prototype:每次从容器中获取的bean,都会创建一个新的 - request:在Http请求中使用的同一个bean - session:在http session中使用的是同一个bean 2. 为什么有prot

  2. 2.30 使用historical

    1. 创建项目 2. pom.xml 3. 代码 3.1. 业务逻辑类 - HelloWorld 3.2. 切面类 3.3. 配置类

  3. 2.31 使用historical

    1. 创建项目 2. pom.xml 3. 代码 - AopConfig - Calc - Main

  4. 2.32 Autowired原理historical

    1. 类继承图 2. 原理分析 1. spring容器refresh的时候有两个关键步骤,registerBeanPostProcessors和finishBeanFactoryInitialization 2. registerBeanPostProcessors会向spring容器注入Autow

  5. 2.33 Spring事务源码分析historical

    1. 开启事务管理注解 - @EnableTransactionManagement 这个注解向spring容器中导入了TransactionManagementConfigurationSelector,我们继续研究 2. TransactionManagementConfigurationSel

  6. 2.34 自定义Startershistorical

    1. 两个问题 1. 这个场景需要使用的依赖是什么 2. 如何编写自动配置 - AutoConfiguration - Properites - 其他Service Bean 2. 实战 2.1. 创建empty project 2.2. 在project settings中添加两个maven pr

  7. 2.35 使用historical

    1. 创建项目 2. pom.xml 3. 代码 - Application.java - TestApplication.java - TestController - TestService

  8. 2.36 Spring Boot Jar启动原理historical

    1. 实验 - pom.xml - com.zsk.test.Application - 打jar包 - 解压后,使用tree命令查看结构 2. 可执行Jar的结构 - 包含 - Jar描述:META-INF/MANIFEST.MF - Spring Boot Loader:org/springfr

  9. 2.37 MyBatis自动配置historical

    1. 开启MyBatis自动配置 spring boot自动配置mybatis是通过@MybatisAutoConfiguration注解开启的,如下 实现了InitializingBean,在spring实例化MybatisAutoConfiguration这个bean之后会调用其afterPro

  10. 2.38 原理分析historical

    1. spring-boot-starter-web预先导入的自动配置类 - @WebMvcAutoconfiguration WebMvcAutoConfigurationAdapter是Spring Boot开启web mvc自动配置的类,如下 - 里面有一个静态内部配置类, WebMvcAut