摘要: Statement.executeQuery 和 Statement.executeUpdate 作用: 用于执行SQL查询和更新操作。 问题: 容易导致SQL注入攻击。 解决方法: 使用PreparedStatement进行参数化查询。 // 不安全的做法 Statement stmt = con 阅读全文
posted @ 2024-06-04 21:44 dearkay 阅读(1) 评论(0) 推荐(0) 编辑