javax.servlet.ServletException: org.springframework.orm.hibernate3.HibernateQueryException: users is not mapped. [select us from users us where us.username=? and password=?]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: users is not mapped. [select us from users us where us.username=? and password=?]
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)是哪里错了?提示是DAO类里?

解决方案 »

  1.   

    hql语句中Users首写字母大写。
      

  2.   

    select us from users us where us.username=? and password=?];  这句语句有问题吧
    如果是sql :select us.* from users us where us.username=? and password=?] 
      

  3.   

    select us from users us where us.username=? and password=?];  这句语句有问题吧
    如果是sql :select us.* from users us where us.username=? and password=?] 
      

  4.   

    如果是hql select 实体属性 from 实体名  where 属性(用户名) =? and 属性(密码)=?];