Spring Boot:Caused by: org.apache.ibatis.binding.BindingException: Parameter 'deptId' not found.

1. 错误信息描述

在使用Spring Boot + Mybaits从前台向后台提交数据时,控制台报出该错误信息

2. 报错原因

在dao接口中,该方法拥有两个参数,Mybaits无法区分这两个参数

3. 解决方法

在dao方法中为这两个参数分别标注Mybaits的@Param注解,对这两个参数加以区分

    List<ManagerSelectResult>selectToday(@Param("deptId") Integer deptId, @Param("officeId") Integer officeId);

  

Spring Boot:Caused by: org.apache.ibatis.binding.BindingException: Parameter 'deptId' not found.

原文地址:https://www.cnblogs.com/huiAlex/p/9310117.html

时间: 2024-11-05 14:45:48

Spring Boot:Caused by: org.apache.ibatis.binding.BindingException: Parameter 'deptId' not found.的相关文章

org.apache.ibatis.binding.BindingException: Parameter &#39;start&#39; not found. Available parameters are [1, 0, param1, param2]

DEBUG 2018-05-30 08:43:26,091 org.springframework.jdbc.datasource.DataSourceTransactionManager: Rolling back JDBC transaction on Connection [[email protected]]DEBUG 2018-05-30 08:43:26,091 org.mybatis.spring.SqlSessionUtils$SqlSessionSynchronization:

【Mybatis异常】 org.apache.ibatis.binding.BindingException: Parameter &#39;storeId&#39; not found. Available parameters are [form, param1]

一.异常信息 2019-05-31 16:06:25.272 [http-nio-10650-exec-3] WARN o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver.logException(AbstractHandlerExceptionResolver.java:192) - Resolved exception caused by Handler execution: org.mybatis.spring.MyBatisSystemExce

springboot项目下的Caused by: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):

今天遇到mybatis-puls的报错Caused by: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 排查方法如下: 1.mapper接口和mapper.xml是否在同一个包(package)下?名字是否一样(仅后缀不同)? 2.mapper.xml的命名空间(namespace)是否跟mapper接口的包名一致? 3.接口的方法名,与xml中的一条sql标签的id一致 4.配置

org.apache.ibatis.binding.BindingException: Parameter &#39;idList&#39; not found解决办法

https://blog.csdn.net/qq_28379809/article/details/83342196 问题描述 使用Mybatis查询数据库报错: org.apache.ibatis.binding.BindingException: Parameter 'idList' not found 1 接口是这样的: public List<User> findByIdList(List<Integer> idList); 1 XML是这样的: <select id

org.apache.ibatis.binding.BindingException: Parameter &#39;xxx&#39; not found. Available parameters are [arg1, arg0, param1, param2]

这个异常说明参数没有加上@Param注解,加上这个注解就行了. org.apache.ibatis.binding.BindingException: Parameter 'xxx' not found. Available parameters are [arg1, arg0, param1, param2] 原文地址:https://www.cnblogs.com/FengZeng666/p/12012727.html

spring boot 整合mybatis:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):

最近在学习SpringBoot,遇到些异常情况: 1.异常信息 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.hippo.demo.dao.Chapter6DemoMapper.insert 2.解决方案 问题找了很久,发现使用@Select.@Insert.@Update.@Delete注解代替xxxMapper.xml里面的内容,不存在异常,那就是扫描xxxMapper

Exception:HTTP Status 500 - org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

主要错误信息如下: HTTP Status 500 - org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) description The server encountered an internal error that prevented it from fulfilling this request. exception java.lang.RuntimeException: org

【mybatis】mybatis访问报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

mybatis访问报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 需要检查的步骤: 1.是否mapper.java文件上使用了注解@Mapper  或者 在启动类上扫描了Mapper类 @MapperScan("com.swapping.springcloud.ms.integral.mapper")   [注意扫描的包名是否正确] 2.注意mapper.xml文件中的

转:IDEA异常解决: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

原文地址:https://www.cnblogs.com/jstarseven/p/5803697.html 有时候解决问题不仅仅是解决问题.-----jstarseven 最近采用了开发工具IDEA开发SSM开发框架完成后,发布的时候出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found... 一开始以为是自己配置文件写的有问题找了半天也没有问题,之后才发现是自己对IDEA工具使用的不够熟