1、错误原因 不能将Date类型直接转化为String类型 2、解决办法 将日期类型后面添加如下: 原来:生日:${student.studentBirthday} 修改后:生日:${(student.studentBirthday)?string("yyyy-MM-dd")}