0%

  • Spring IoC注解式开发
    • 声明Bean的注解
      • @Component:组件
      • @Controller:控制器
      • @Service:业务
      • @Repository:仓库(Dao)
    • 负责注入的注解
      • @Value
      • @Autowired
      • @Qualifier
      • @Resource
阅读全文 »

  • 手写Spring框架IoC
    • Spring框架核心接口实现ApplicationContext
    • Spring框架核心接口实现类ClassPathXmlApplicationContext
阅读全文 »

  • Bean的循坏依赖问题
    • 单例模式+set注入
    • 多例模式+set注入(报异常)
    • 单例模式+构造注入(报异常)
    • Spring解决循坏依赖的机理(源码分析)
阅读全文 »

  • Bean的生命周期
    • Bean的生命周期之5步
    • Bean的生命周期之7步
    • Bean的生命周期之10步
阅读全文 »

  • Bean的实例化方式
    • 通过构造方法实例化
    • 通过简单工厂模式实例化
    • 通过factory-bean实例化(工厂方法模式实例化)
    • 通过FactoryBean接口实例化
阅读全文 »