public UserInfo longin(UserInfo userInfo) throws SQLException {
QueryRunner queryRunner = new QueryRunner(JDBCUtils.getDataSource());
String sql = "select * from user_info where user_name=? and user_password=?";
UserInfo exitsUserInfo = queryRunner.query(sql,new BeanHandler<UserInfo>(UserInfo.class), userInfo.getUserName(),userInfo.getUserPassword());
System.out.println(exitsUserInfo.getUserPassword());
return exitsUserInfo;
}
慕侠2389804
慕姐8265434
相关分类