@Override public boolean findUser(String username, String password) { boolean flag = false; try { flag = dao.findUser(username, password); } catch (Exception e) { e.printStackTrace(); } finally { JdbcUtils.close(conn); } return flag; }
public UserDaoProxy() { this.conn = JdbcUtils.getConnection(); this.dao = new UserDaoImpl(conn); }