Hibernate中的 not mapped
5 1节不要放弃治疗
HTTP Status 500 - user is not mapped [from user where name=? and phone=? order by id]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: user is not mapped [from user where name=? and phone=? order by id]
这是Hibernate中的HQL语句标准 ,这样的"from user where name=? and phone=? order by id"是不行的,因为user不是一个类,应该这样写"from User u where u.name=? and u.phone=? order by id"
这样解决之后
HTTP Status 404 - /AnkeleBlog2/list.jsp
404不是500,说明是有效果的数据库中也多出了一条记录
微调一下路径,OK了,后面还有很多的问题,来吧!