2016/12/14---- C3P0
查询
查询一条记录
public UserBean findActiver(String ac) throws SQLException { QueryRunner qr = new QueryRunner(C3P0Util.getDataSource()); return qr.query("select * from users where activeCode = ?", new BeanHandler<UserBean>(UserBean.class),ac); }