配置沒(méi)有問(wèn)題,登錄的時(shí)候出錯(cuò),后臺(tái)提示這個(gè)錯(cuò),如何解決
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=?]
2016-11-19
from后面是實(shí)體名o(╯□╰)o
2016-11-19
搞錯(cuò),是from 后面 表名首字母大寫(xiě)或者是別的原因,反正我遇到同樣問(wèn)題是這樣解決的
2016-11-19
hql語(yǔ)句:from 表名,這里的表名是映射文件名
2016-11-14
值都對(duì)上了,但還是提示這個(gè)錯(cuò)誤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=?]
2016-11-11
username和password的值對(duì)上了嗎,都傳遞到hql語(yǔ)句中了嗎