输出结果如下:Student [stuId=1, stuName=李四, gender=男, birthday=2016-11-09 08:42:38.0, address=Address [postcode=351000, phone=059187654321, address=null], image=null]
@Override
public String toString() {
return address+ ", phone=" + phone + ", postcode=" +postcode;
}
把这个放在Address类里
address已经在student类配置的文件里面删了的,打印不了的
重写tostring方法了没?