org.springframework.jdbc.BadSqlGrammarException: ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'booID' in 'where clause' ### The error may exist in com/cui/dao/BookMapper.xml ### The error may involve com.cui.dao.BookMapper.updateBook-Inline ### The error occurred while setting parameters ### SQL: update ssmbuild.books set bookName=?,bookCounts=?,detail=? where booID=? ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'booID' in 'where clause' ; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'booID' in 'where clause'
要仔细读页面报的错误
改写自己的mapper就可以了



