mybatis的动态修改sql映射错误 There is no getter for property named 'xxx' in 'class entity xxx。

今天总是报上面那个错误,找了小半天才明白怎么回事。如下图

在 if 语句中 company_name 应该为实体类的属性,而不应该是表的字段,并且 #{} 里面也应该为实体类的属性,

猜你喜欢

转载自blog.csdn.net/kangkang_hacker/article/details/80593490