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;}
- 2 回答
- 0 关注
- 87 浏览
添加回答
举报
0/150
提交
取消