出现这种情况的原因是结果集里只有一个或者没有结果,然后我以为可以不调用.next(),然后发现出错了;
// while(resultSet.next())
if
(
resultSet
.
getString
(
"password"
).
equals
(password))
return
true
;
return
false
;
加上就好啦!