报错原因

MySql的游标默认在第一行的前面

解决方法

在对MySql结果集ResultSet操作时让游标向后移动一下(调用 next()方法 )

boolean next = resultSet.next();