能够说出Spring的体系结构
能够编写IOC入门案例
能够编写DI入门案例
能够配置setter方式注入属性值
能够配置构造方式注入属性值
能够理解什么是自动装配
依赖注入有几种方式?
setter方式注入使用什么子标签?


构造方式注入使用什么子标签?



如何配置按照类型自动装配?
配置中使用bean标签autowire属性设置自动装配的类型
xxxxxxxxxx
<bean id="bookDao" class="com.itheima.dao.impl.BookDaoImpl"/><bean id="bookService" class="com.itheima.service.impl.BookServiceImpl" autowire="byType"/>
xxxxxxxxxx
<property name="array"> <array> <value>100</value> <value>200</value> <value>300</value> </array></property>
xxxxxxxxxx
<property name="list"> <list> <value>itcast</value> <value>itheima</value> <value>boxuegu</value> <value>chuanzhihui</value> </list></property>
xxxxxxxxxx
<property name="set"> <set> <value>itcast</value> <value>itheima</value> <value>boxuegu</value> <value>boxuegu</value> </set></property>
xxxxxxxxxx
<property name="map"> <map> <entry key="country" value="china"/> <entry key="province" value="henan"/> <entry key="city" value="kaifeng"/> </map></property>
xxxxxxxxxx
<property name="properties"> <props> <prop key="country">china</prop> <prop key="province">henan</prop> <prop key="city">kaifeng</prop> </props></property>
说明:property标签表示setter方式注入,构造方式注入constructor-arg标签内部也可以写<array>、<list>、<set>、<map>、<props>标签