报错记录:Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:"/>
报错记录:Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:
这是我的报错
原因:
数据库的sql语句出现了问题,仔细检查该功能的语句。set后面多了一个等号
<update id="updateBook" parameterType="Books">update ssmbuild.booksset = bookName=#{bookName},bookCounts=#{bookCounts},detail=#{detail}where bookID=#{bookID};</update>
修改后成功运行。
更多推荐
报错记录:Request processing failed; nested exception is org.springframework.jdbc.Bad
发布评论