背景
SQL日志打印出现了脏东西:
本来结束的
where muc.code = ?;
后面凭空多出了一个 LIMIT语句
### Cause: com.mysql.jdbc.exceptions.jdbc4.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 'LIMIT 21' at line 6
这个是mapper层语句:
百思不得姐
答案请移步另外的文章里:
PageHelper源码解析