
一句话:注意不要写成:'#{username}' 这个样子了,也就是别再外面加引号
博客指出在MyBatis使用中,要避免SQL语句写成'#{username}'这种在外面加引号的形式,否则可能引发如SQLException、Parameter index out of range等异常报错。

一句话:注意不要写成:'#{username}' 这个样子了,也就是别再外面加引号
2010
1194
1617
2674
5991
1276
977
3581

被折叠的 条评论
为什么被折叠?