今天在学习Mybatis的时候,报了一个错:Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'person'  in 'class com.lyon.entity.Person'

看了一下网上的解答,可以确认错误在

Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named '

if判断这里,person是一个对象类型,把这儿参数的person.都去掉运行就不报错了!

Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named '

最后,总结一下,报这个错误的,基本可以确定是参数类型错误。

 

相关文章:

  • 2021-11-20
  • 2022-01-23
  • 2021-09-02
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2021-05-04
  • 2021-09-12
猜你喜欢
  • 2021-07-21
  • 2022-12-23
  • 2021-12-07
  • 2021-06-15
  • 2021-08-17
  • 2021-09-11
  • 2021-07-10
相关资源
相似解决方案