ERROR:org.hibernate.hql.internal.ast.QuerySyntaxException: user is not mapped [from user]
ERROR:org.hibernate.hql.internal.ast.QuerySyntaxException: user is not mapped [from user]
错误信息:user不匹配
原因:hql语句有误。“from User" User是映射数据库里面表的类名,不是数据库的表名。
贴上百度经验一条,链接如下: