Struts Problem Report
Struts has detected an unhandled exception:
Messages:
Unknown column 'empmodel0_.useName' in 'field list'
could not execute query
could not execute query; SQL [select empmodel0_.uuid as uuid0_, empmodel0_.useName as useName0_, empmodel0_.pwd as pwd0_, empmodel0_.name as name0_ from tbl_emp empmodel0_ where userName=? and empmodel0_.pwd=?]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query
File: com/mysql/jdbc/SQLError.java
Line number: 936
------解决思路----------------------
useName 字段在数据库表里没有,检查一下表
------解决思路----------------------
好好看看你的SQL文,是表名写错了,还是字段名写错了,有useName这个字段么?
------解决思路----------------------
sql错误。。。。。
------解决思路----------------------
是的SQL问题