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.

36 lines
1.4 KiB

This file contains ambiguous Unicode characters!

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">
<bean id="student" class="com.ssm.aop.xml.Student">
<property name="studentId" value="2025001"/>
<property name="studentName" value="张三"/>
<property name="className" value="计科2班"/>
<property name="major" value="计算机科学与技术"/>
<property name="age" value="20"/>
<property name="phone" value="13800138000"/>
</bean>
<!-- ==================== 1. 院系管理Bean配置setter方式注入 ==================== -->
<bean id="department" class="com.ssm.ioc.Department">
<!-- 院系ID -->
<property name="deptId" value="1"/>
<!-- 院系名称 -->
<property name="deptName" value="计算机学院"/>
<!-- 院系编号 -->
<property name="deptNo" value="CS001"/>
<!-- 院系负责人 -->
<property name="deptManager" value="张教授"/>
<!-- 联系电话 -->
<property name="deptPhone" value="010-12345678"/>
<!-- 所属校区 -->
<property name="campus" value="主校区"/>
</bean>
</beans>