String hql = "from Book where id = ?"; List list = (List) this.getHibernateTemplate().find(hql, new Object[]{1});
运行出错了
ognl.MethodFailedException: Method "test01" failed for object
大哥们,多谢了
new Object[]{1}修改成new Object[]{0}