方法一: Date类型的类成员变量使用java.sql.Timestamp 方法二: Mybatis的映射配置javatype=Timestamp.class 转载于:https://www.cnblogs.com/zhengguangaa/p/8990742.html