报错:
蓝色部分错误完整语句:
org.apache.ibatis.exceptions.PersistenceException:
### Error updating database. Cause: 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 '} where id = 49' at line 1。就可以定位了,很大可能是因为不小心写错语句报错。
near '} where id = 49' at line 1
我的具体原因是因为SQL语句写错了,在箭头处写入#即可解决。
总而言之就是把mapper文件里面好好检查检查,有可能是SQL语法错误,也可能是其他的错误。