Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘FriendAndBir’ in ‘class org.TZY.bean.FriendAndBir’
Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘FriendAndBir’ in ‘class org.TZY.bean.FriendAndBir’
解决
实体类和xml文件中的某个单词写错了
mybatis动态查询里面,
if test = 里面的那个字段应该和对应实体类的字段名字相同。而不是数据库的字段(就是对应数据库的字段)。