关于tk mybatis的异常You have an error in your SQL syntax; check the manual that corresponds to

tkmybatis:如果更改了字段,实体类属性也要跟着改成驼峰式写法,否则就会报错,如下图:
关于tk mybatis的异常You have an error in your SQL syntax; check the manual that corresponds to
之前我是:
插入的时候报错如下:You have an error in your SQL syntax; check the manual that corresponds to
后来发现 order是关键字查询数据库会出错
于是改成
关于tk mybatis的异常You have an error in your SQL syntax; check the manual that corresponds to
关于tk mybatis的异常You have an error in your SQL syntax; check the manual that corresponds to
以为不用改实体类属性依然可以映射,结果还是报错,我以为是mybatis的一级缓存,害我还拼命的清缓存,最后实体类属性也改成completedOrder就好了,
关于tk mybatis的异常You have an error in your SQL syntax; check the manual that corresponds to
关于tk mybatis的异常You have an error in your SQL syntax; check the manual that corresponds to
记住,一定要驼峰