SSH出错--hibernate--org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User]

String queryString = "from user  where u.userName= ? and u.userPassword  = ?";

-----------------------------------------------------------

改为:

String queryString = "from User  where u.userName= ? and u.userPassword  = ?";

我估计是因为:

 <mapping resource="com/meetcomet/entity/User.hbm.xml" />

原文地址:https://www.cnblogs.com/meetcomet/p/3449227.html