在字段的get方法上添加注解@Temporal(TemporalType.DATE)
@Temporal(TemporalType.DATE) @Column(name = "teachingtime", nullable = true) public Date getTeachingtime() { return teachingtime; } public void setTeachingtime(Date teachingtime) { this.teachingtime = teachingtime;}
就可以了
新闻热点
疑难解答