public void fun2() throws SQLException
{
QueryRunner queryRunner=new QueryRunner(JdbcUtils.getDataSource());
String sql="select count(*) from stu";
Object[] param={};
Object list= queryRunner.query(sql, new ScalarHandler(), param);
{
QueryRunner queryRunner=new QueryRunner(JdbcUtils.getDataSource());
String sql="select count(*) from stu";
Object[] param={};
Object list= queryRunner.query(sql, new ScalarHandler(), param);
System.out.println(list.toString());
}