org.springframework.jdbc.BadSqlGrammarException: StatementCallback;

org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [ select * from tab_favorite where rid = ? and uid = ?]; nested exception is 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 '? and uid = ?' at line 1

这个错误不在语法本身,而是没有传入值

猜你喜欢

转载自blog.csdn.net/mddCSDN/article/details/89045158