org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'socialCode' in 'class java.lang.String'

异常:

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'socialCode' in 'class java.lang.String'

方法一、sql映射接口,使用@Param(value = "socialCode")指定传入sql映射文件的参数名称,实测有效

方法二、sql映射文件使用#{_socialCode}

 

posted @ 2019-09-12 14:26  qing222  阅读(1218)  评论(0编辑  收藏  举报