您的位置: 首页 > 文章 > MyBaits映射错误-----There is no getter for property named ‘id‘ in ‘class java.lang.String‘ MyBaits映射错误-----There is no getter for property named ‘id‘ in ‘class java.lang.String‘ 分类: 文章 • 2024-09-27 20:38:28 nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘id’ in ‘class java.lang.String’ 错误原因: myBaits映射错误。 XxMapper.xml中的SQL语句写错了 当参数类型为String时,使用两个if语句会报错 删除一个