Spring框架在Bean中的管理(第十一课)案例实操是在Spring框架在Bean中的管理(第十课)中实操内容进行加深理解Spring中的IOC如何管理?
第一部分 非正常的数据类型的实操 Java如何进行的和Spring中Bean管理如何进行的。
- public class Student {
- private String name;
- private int age;
- /*非正常的数据类型*/
- private Date birthday;
-
- public Student() {
-
- }
- <bean id="sss" class="com.Sping.Entily.Student">
- <property name="name" value="立交四">property>
- <property name="age" value="21">property>
- <property name="birthday" ref="date">property>
- bean>
- <bean id="date" class="java.util.Date"