Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax;

一、发现问题

Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: 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 语句在mapper.xml拼接错了,我当时是多了一个逗号

原文地址:https://www.cnblogs.com/cuijiade/p/8706605.html