java.sql.Timestamp cannot be cast to java.sql.Date
那么就把类型改过来
java.sql.Date--->java.sql.Timestamp
new java.sql.Timestamp(yourDate.getTime());
java.sql.Timestamp-->java.sql.Date
new java.sql.Date(yourTimestamp.getTime());
java.sql.Timestamp cannot be cast to java.sql.Date
那么就把类型改过来
java.sql.Date--->java.sql.Timestamp
new java.sql.Timestamp(yourDate.getTime());
java.sql.Timestamp-->java.sql.Date
new java.sql.Date(yourTimestamp.getTime());