You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns= "http://www.springframework.org/schema/beans"
xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation= "http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd" >
<!-- Teacher Bean: 注入工号、姓名、职称 -->
<bean id= "teacher" class= "com.ssm.di.xml.Teacher" >
<property name= "teacherId" value= "T001" />
<property name= "name" value= "张教授" />
<property name= "title" value= "教授" />
</bean>
<!-- Course Bean: 注入课程编号、名称、学分和Teacher对象 -->
<bean id= "course" class= "com.ssm.di.xml.Course" >
<property name= "courseId" value= "C001" />
<property name= "courseName" value= "Java程序设计" />
<property name= "credit" value= "4" />
<property name= "teacher" ref= "teacher" />
</bean>
</beans>