问题:
mybatis.binding.BindingException: Parameter 'companyName’ not found. Available parameters are [arg3,arg2
解决:
原因是DAO层传入参数mapper无法识别,
只需要在在DAO中的方法中前加入@Param(“xxx”)即可,在mapper.xml中使用xxx作为传参.
int selectBy4Params(String companyName,String version,String systemName,String finishedFlag);
修改为:
int selectBy4Params(@Param("companyName")String companyName,@Param("version")String version,@Param("systemName")String systemName,@Param("finishedFlag")String finishedFlag);
标签:Available,String,parameters,companyName,arg2,arg3,Param,Parameter
From: https://www.cnblogs.com/ponywind/p/17922281.html