parent
6f866c23a1
commit
efb9193d76
@ -0,0 +1,28 @@
|
||||
package com.ssm.di.annotation;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class Student {
|
||||
private Integer studentId; // 学号
|
||||
private String studentName; // 姓名
|
||||
private Integer age; // 年龄
|
||||
|
||||
public Student() {}
|
||||
|
||||
public Integer getStudentId() { return studentId; }
|
||||
public void setStudentId(Integer studentId) { this.studentId = studentId; }
|
||||
public String getStudentName() { return studentName; }
|
||||
public void setStudentName(String studentName) { this.studentName = studentName; }
|
||||
public Integer getAge() { return age; }
|
||||
public void setAge(Integer age) { this.age = age; }
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "学生信息{" +
|
||||
"学号=" + studentId +
|
||||
", 姓名='" + studentName + '\'' +
|
||||
", 年龄=" + age +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Loading…
Reference in new issue