om.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; chec

使用mybatis报错,缘由很清楚就是sql存在语法错误,这种错误有多是使用了关键字的字段引发的,自行检查了并无发现mysql的关键字,检查了sql好像也没发现什么问题,没办法只能mybatis源码,发现这样的sql的参数并无被替换成占位符mysql

select id, nickname, email, pswd, create_time, last_login_time,statussql

from  u_user where  username={#username,jdbcType=VARCHAR}mybatis

跟代码发现缘由以下:server

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near  at line 4 - m15627293516 - 许康銮我的博客

终于发现本身犯了一个很低级的错误,在这里记录一下这个低级错误。源码

相关文章
相关标签/搜索