unexpected token: * near line 1, column 8 [select * from t_user where 1=1]
unexpected token: * near line 1, column 8 [select * from t_user where 1=1] 和users is not mapped 这个错误可能是因为以下原因导致:1.在hibernate里面写sql执行时候要用了session.createQuery(sql); 需要用session.createSQL