String hql = "from User where username=? and password=?";这是hql语句,看了下应该没错的。
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
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货