Mybatis报错: There is no getter for property named xxx

iot-emergency 20.10.16 -(param依赖引用异常)

情景:

Mybatis报错: There is no getter for property named xxx

分析:

错误提示,mybatis在查询的时候不知道叫id的是啥,查看mapper文件,可能发现有个id在作为某个函数的形参时,没有@Param注解,加上即可

List<EventModelVO> queryByConditions(@Param("eventModelDTO") EventModelDTO eventModelDTO);

总结:

1、此类异常一定是和 param 有关

2、可能是未添加 param 注解

3、可能是 param 注解引入的依赖出错 (实际上也是:未添加 param 注解)

Mybatis报错: There is no getter for property named xxx