版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36688143/article/details/88395359
org.apache.ibatis.binding.BindingException: Parameter '' not found. Available parameters are [arg1,
参数未找到,可能情况:
1、mapper里的接口参数是多个,但是没有加上@Param注解,正确格式:
UserWxReward selectByCondition(@Param(“userId”)Long userId, @Param(“type”)int type);
2、@Param错误的引用了Spring的而不是Mybatis的
ORA-00904: "FD"."FAADLL": invalid identifier
无效的标识符,可能情况:
1、mapper中传入的是Date类型,而SQL.xml中parameterType="String",传参与接参类型不一致
2、SQL.xml中SQL列名写错