springboot项目开发时出现这个错误,找了半天的错误,结果发现反了一个很低级的错,在dao层没有加上参数@Param(),sql语句绑定不上
之前:没有绑定List queryAllShopcar();
报错。
绑定后:List queryAllShopcar(@Param(“page”) Integer page, @Param(“count”) Integer count, @Param(“couserid”) String couserid);
错误成功解决
nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘couserid‘ not found
最新推荐文章于 2024-05-20 10:45:42 发布