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

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

你可能感兴趣的:(Javaweb笔记,笔记)