org.apache.ibatis . binding.BindingException : invalid bound statement (not found) problem, that is, there is a problem when the Dao interface and mapper configuration file are mapped and bound in mybatis. In short, the interface and XML are either not found, or they are found but not matched.
The screenshot shows the common reasons for searching in the network
According to the revision, the problem still exists. Finally, it took a lot of effort to find the root of the problem. Dao interface is inconsistent with the file name of XML.
The interface name and interface file name are both department Dao, and the configuration file name is DeparmentDao.xml It took a lot of effort to look up a t for both names. After modification, everything will be normal.
This is a point as like as two peas. Remember that the name of the interface name and Mybatis must be exactly the same.
Read More:
- [Solved] org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.zyh.springboot.
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xxx.dao.UserDao
- When I first learned mybatis org.apache.ibatis . binding.BindingException report errors
- Spring boot can’t scan XML (invalid bound statement (not found))
- How to Fix Invalid bound statement (not found) Error
- Invalid bound statement (not found) of custom SQL in mybatisplus
- Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibat
- org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession. ### The error may
- [How to Fix] org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
- Error building SqlSession. ### Cause: org.apache.ibatis.builder.BuilderException: Error creating d
- org.apache.ibatis.type.TypeException: Error setting non null for parameter #4 with JdbcType null
- Remember a mybatis error org.apache.ibatis . session.defaults.DefaultSqlSession
- Does the version of idea2020.1 import mybayis jar package or report an error? Error: (4,28) Java: package org.apache.ibatis.io does not exist
- org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is ‘com/hujin
- [solved] closingontransa ctionalSqlSessionorg.apache.ibatis . session.defaults.DefaultSqlSession @20] No information after that.
- org.apache.spark.SparkException: Task not serializable
- dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
- Tomcat9 Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
- Error: Could not find or load main class org.apache.hadoop.hbase.util.HBaseConfTool
- Ora-01008: not all variables are bound