Spring-day01


第一章 Spring框架介绍

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------1.5

  • 配置文件bean.properties:

 

 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------1.6

需求:开发dao层和service层保存账户,不操作具体数据库

  • dao层 —— UserDao.java UserDaoImpl.java

 

  • service层 —— UserService.java UserServiceImpl.java

 

  • 测试方法

  • 自定义BeanFactory.java

 

第二章 SpringIOC

 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------2.1

  • 准备工作
    • 导入Spring框架依赖的jar包

    • 定义类HappyComponent.jar,在配置文件中进行配置

 

 

  -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------2.2 2.5

   -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------2.3

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------2.4

第三章 依赖注入(DI)

  • 环境搭建
    • 导入依赖

    •  创建Spring配置文件applicationContext.properties

  -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------3.1

  • HappyComponent.java
  • 测试方法

  • 配置文件配置

  -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------3.2

  • HappyMachine.java
  • 测试方法

  • 配置文件配置

 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------3.3

  • Person.java

  • 配置文件配置

  •  测试方法

  -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------3.4

  • SpecialValue.java

  • 配置文件配置

  •  测试方法

   -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------3.5

  • ComplexValue.java

  •  配置文件配置

  •  测试方法

第四章 Schema约束