异常:

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}

 

相关文章:

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