Mybatis报错no getter 和 Druid 报错injection violation, syntax error:

"Internal Server Error","message":"nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named '***' in 'class com.***.common.domain.**********DO'","path":"/*****/*******"

这个问题发生后 反复检查了mapper,发现没有任何问题, 后来检查了实体类发现是该属性的setter书写错误.



 Error updating database. Cause: java.sql.SQLException: sql injection violation, syntax error: syntax error, error in :' `create_time`, `updat',expect RPAREN, actual IDENTIFIER `create_time` : insert into tb_personal_honor (`id`, `time`, `honor_name`, `honor_level`, `issuing_authority``create_time`,`update_time`, `create_person_id`, `update_person_id`) values (?, ?, ?,?, ?, ?, ?, ?, ?)### SQL: insert into tb_personal_honor (`designer_id`, `time`, `honor_name`, `honor_level`, `issuing_athority` `create_time`, `update_time`, `create_person_id`, `update_person_id`) values (?, ?, ?, ?, ?, ?, ?, ?, ?)

expect RPAREN, actual IDENTIFIER来自Druid. 这个报错显示发生在 create_time字段, 考虑到不存在版本过低的问题, 实际仔细检查后发现`issuing_authority``create_time`这里中间缺少一个逗号.

你可能感兴趣的:(Mybatis报错no getter 和 Druid 报错injection violation, syntax error:)