现在的位置: 首页 > 综合 > 正文

he method get(Class, Serializable) in the type HibernateTemplate is not applicable for the arguments

2017年12月04日 ⁄ 综合 ⁄ 共 213字 ⁄ 字号 评论关闭

 he method get(Class, Serializable) in the type HibernateTemplate is not   applicable for the arguments(jxaubooks.class ,booksId);

 

 

因为booksId是以object的形式传进来;它实积上是string类型,String默认就实现了可序列化;而object默认没有,所以与

方法 get(Class,serierse)不匹配;

抱歉!评论已关闭.