ReflectionException: There is no getter for property named 'fname' in 'class java.lang.String'

报错信息:org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'fname' in 'class java.lang.String'
ReflectionException: There is no getter for property named 'fname' in 'class java.lang.String'_第1张图片

 

ReflectionException: There is no getter for property named 'fname' in 'class java.lang.String'_第2张图片

 报错位置:

ReflectionException: There is no getter for property named 'fname' in 'class java.lang.String'_第3张图片

报错原因是用Sting类型传参数没有写注解,我的是在Maapper.java中没有写注解@Param("fname")!!

你可能感兴趣的:(ReflectionException: There is no getter for property named 'fname' in 'class java.lang.String')