Spring-day03(02)使用注解代替Xml配置

1.导入新的命名空间

 将对象配置到容器

修改对象的作用范围

属性注入

对象类型注入

    自动装配

猜你喜欢

转载自blog.csdn.net/qq_40967319/article/details/89388138