📅  最后修改于: 2022-03-11 14:52:11.202000             🧑  作者: Mango
QueryRunner run = new QueryRunner(dataSource);
// Use the BeanListHandler implementation to convert all
// ResultSet rows into a List of Person JavaBeans.
ResultSetHandler> h = new BeanListHandler(Person.class);
// Execute the SQL statement and return the results in a List of
// Person objects generated by the BeanListHandler.
List persons = run.query("SELECT * FROM Person", h);