preStmt = conn.prepareStatement(personSQL,Statement.RETURN_GENERATED_KEYS);
要在personSQL后边添加Statement.RETURN_GENERATED_KEYS