𝓝𝓮𝓶𝓸&博客

随笔分类 -  前端

摘要:JSP中#{},${}和%{}的区别: #{} #{}:对语句进行预编译,此语句解析的是占位符?,可以防止SQL注入, 比如打印出来的语句 select * from table where id=?,预编译之后会变成select * from table where id = "1 or 1 = 阅读全文
posted @ 2020-10-03 17:51 Nemo& 阅读(3698) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示