Mybatis什么时候用${}
摘要:
$的作用是字符拼接,不能防止sql注入,比如: select * from ${tableName} select * from table where id in ${Id} 而#{}的作用是充当占位符 select * from #{tableName} 就会变成 select * from ' 阅读全文
posted @ 2020-11-10 22:17 橘子味的猫啊 阅读(1665) 评论(0) 推荐(0) 编辑