注解 List pojoList = resultSetMapper.mapRersultSetToObject(resultSet, SamplePojo.class); // print out the list retrieved from database if(pojoList != null){ for(SamplePojo pojo : pojoList){ System.out.println(pojo); } }else{ System.out.println("ResultSet is empty. Please check if database table is empty"); }