org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'id' in 'cla

Mybatis  配置文件中  sql语句if判断采用单个参数报错。

解决:

一:mapper中采用@Param注解

二:sql中采用_parameter代替参数,_parameter为内置对象代替原有参数

 

posted @ 2019-07-04 12:00  Jian单  Views(2741)  Comments(0Edit  收藏  举报