更新时间:2022-06-24 08:03:21
解决办法:进行类型转换
java.sql.Date--->java.sql.Timestamp
new java.sql.Date(yourTimestamp.getTime());
原帖地址:http://blog.csdn.net/democreen/article/details/6081290
java中报错java.sql.Timestamp cannot be cast to java.sql.Date
SSH整合时执行hibernate查询报错:java.lang.ClassCastException: com.ch.hibernate.Department_$$_javassist_0 cannot be cast to javassist.util.proxy
Hibernate中HQL语句查询指定字段值报错:ClassCastException: [java.lang.Object; cannot be cast to bean.PersonStatic
Myeclipse中java web.xml报错cvc-complex-type.2.3: Element 'web-app' cannot have character [children], because the type's content type is element- only.