mybatis的报错____3Error updating database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right

仔细查看报错日志中的sql语句:

### SQL: update smbms_bill          set billCode=?,             productName=?,             productDesc=?, where id=?

没错,在where id = ?之前多了一个 逗号,正确姿势,去删掉接口配置文件中 最后一个if标签的逗号。

(不得不说 log4j日志打印信息真是好用!)

猜你喜欢

转载自www.cnblogs.com/xbfchder/p/11247727.html
今日推荐