在我们开发的工程中,有时候会报
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ------
这种异常 不用多想,肯定是我们的sql语句出现问题,下面我只说我经常犯的一种错误。当然还有很多种错误,我们遇到再说。
我的是之前mybatis的user.xml映射文件定义的字段名和数据库中的不一致,才报这种bug,数据库中activation_code等忘记加下划线_
加上就好了。