2.9(基于XML的两种装配实例化对象的方式)、(基于annotation的装配方式)、(自动装配) 2:基于annotation的装配 UserDao数据层 UserService业务层 UserController控制层 3:自动装配: 【注】一定要注意到注中的内容。