Spring Clould 遇到的问题 nested exception is org.apache.ibatis.binding.BindingException:
在开发测试过程中,发现点击保存按钮返回错误,查看了后台发现报错
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘’ not found. Available parameters are [arg1, arg0, param1, param2]
仔细检查了Mapper文件的代码
@Select("select typeByNo(#{type},#{no})") public long typeByNo(String notype,String nolimit);
方法调用时,也传入了两个参数
正一筹莫展之时想到,参数前要加上@Param(“type”) 注解
加上后问题解决