今天在学习Mybatis的时候,报了一个错:Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'person' in 'class com.lyon.entity.Person'
看了一下网上的解答,可以确认错误在
if判断这里,person是一个对象类型,把这儿参数的person.都去掉运行就不报错了!
最后,总结一下,报这个错误的,基本可以确定是参数类型错误。