Java防止SQL注入的途径介绍
摘要:为了防止SQL注入,最简洁的办法是杜绝SQL拼接,SQL注入攻击能得逞是因为在原有SQL语句中加入了新的逻辑,如果使用PreparedStatement来代替Statement来执行SQL语句,其后只是输入参数,SQL注入攻击手段将无效,这是因为PreparedStatement不允许在不同的插入时...
阅读全文
posted @ 2015-03-27 17:56
posted @ 2015-03-27 17:56
posted @ 2015-03-27 17:55
posted @ 2015-03-27 17:53