为了账号安全,请及时绑定邮箱和手机立即绑定

配置没有问题,登录的时候出错,后台提示这个错,如何解决

ERROR - Exception occurred during processing request: tb_staff is not mapped [from tb_staff where username=? and password=?]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: tb_staff is not mapped [from tb_staff where username=? and password=?]

正在回答

5 回答

from后面是实体名o(╯□╰)o

0 回复 有任何疑惑可以回复我~

搞错,是from 后面 表名首字母大写或者是别的原因,反正我遇到同样问题是这样解决的

0 回复 有任何疑惑可以回复我~

hql语句:from 表名,这里的表名是映射文件名

0 回复 有任何疑惑可以回复我~
#1

伪何_殇訫

谢谢,但是我很不理解为什么要写表名 以前都是数据库里的名字呢
2016-12-02 回复 有任何疑惑可以回复我~

值都对上了,但还是提示这个错误ERROR - Exception occurred during processing request: tb_staff is not mapped [from tb_staff where username=? and password=?]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: tb_staff is not mapped [from tb_staff where username=? and password=?]

0 回复 有任何疑惑可以回复我~

username和password的值对上了吗,都传递到hql语句中了吗

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

配置没有问题,登录的时候出错,后台提示这个错,如何解决

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号