实体类-打印结果错误

org.lanqiao.entity.Student@ae45eb6

package org.lanqiao.entity;

public class Student {
	private int stuNo;
	private String stuName;
	private int stuAge;
	
	public Student() { 
	}
	public Student(int stuNo, String stuName, int stuAge) { 
		this.stuNo = stuNo;
		this.stuName = stuName;
		this.stuAge = stuAge;
	}
	public int getStuNo() {
		return stuNo;
	}
	public void setStuNo(int stuNo) {
		this.stuNo = stuNo;
	}
	public String getStuName() {
		return stuName;
	}
	public void setStuName(String stuName) {
		this.stuName = stuName;
	}
	public int getStuAge() {
		return stuAge;
	}
	public void setStuAge(int stuAge) {
		this.stuAge = stuAge;
	}
//	@Override
//	public String toString() {
//		return "Student [stuNo=" + stuNo + ", stuName=" + stuName + ", stuAge=" + stuAge + "]";
//	}
	 
}

没有添加toString()

你可能感兴趣的:(报错处理,MyBatis,springMVC,Spring,SSM,MyEclipse)