解决办法:进行类型转换
java.sql.Date--->java.sql.Timestamp
new java.sql.Timestamp(yourDate.getTime());java.sql.Timestamp-->java.sql.Date
new java.sql.Date(yourTimestamp.getTime());
原帖地址:http://blog.csdn.net/democreen/article/details/6081290
解决办法:进行类型转换
java.sql.Date--->java.sql.Timestamp
new java.sql.Timestamp(yourDate.getTime());new java.sql.Date(yourTimestamp.getTime());
原帖地址:http://blog.csdn.net/democreen/article/details/6081290