配置沒有問題,登錄的時候出錯,后臺提示這個錯,如何解決
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后面是實體名o(╯□╰)o
2016-11-19
搞錯,是from 后面 表名首字母大寫或者是別的原因,反正我遇到同樣問題是這樣解決的
2016-11-19
hql語句:from 表名,這里的表名是映射文件名
2016-11-14
值都對上了,但還是提示這個錯誤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的值對上了嗎,都傳遞到hql語句中了嗎