ssh的一个小项目,,,那位大牛有空可以帮忙调试下嘛,,,可以站内call我真心累。

解决方案 »

  1.   

    http://www.blogjava.net/GavinMiao/archive/2011/10/27/362166.html
      

  2.   

    sql语法错误~把你的service或者dao里面写hql语句的地方的代码,发上来,我看看你的hql语句
      

  3.   

    String hql = "from User where username=? and password=?";这是hql语句,看了下应该没错的。
      

  4.   

    Hibernate: select user0_.id as id0_, user0_.username as username0_, user0_.password as password0_, user0_.sex as sex0_, user0_.age as age0_, user0_.phone as phone0_, user0_.address as address0_, user0_.power as power0_, user0_.regdate as regdate0_ from et.user user0_ where user0_.username=? and user0_.password=?打印出来的sql语句有问题多了个0