org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) problem, that is, there is a problem when mapping and binding the dao interface and mapper configuration file in mybatis. Simply put, the interface and xml are either not found It is either
After the modification, the problem still exists. In the end, it took a lot of effort to find the source of my code problem. The file name of the dao interface is inconsistent with that of the xml.
Both the interface name and the interface file name are DepartmentDao, and the configuration file name is DeparmentDao.xml. It took a lot of effort to find a t letter in the names of both. After the modification, everything is normal.
This is a point that is easy to overlook. Remember: the interface name and the Mybatis mapping file name must be exactly the same.
Read More:
- mybatis-plus calls its own selectById method and reports an error: org.apache.ibatis.binding.BindingException:
- [Solved] Mybatis crud insert error: org.apache.ibatis.binding.BindingException: Mapper method ‘com.liang.dao.UserMapper.addUser…
- [Solved] mybatis plus Error: Invalid bound statement (not found)
- Mybatis error under Springboot project: Invalid bound statement (not found)
- [Solved] Mybatis-plus Error: mybatisplus-Invalid bound statement (not found): com.integration.dao.ApiDao.getList
- Mybatis-plus calls its own method error: Invalid bound statement
- [Solved] Mybatis Error: Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration.
- [Solved] Mybatis:Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.
- [Solved] java.lang.ClassNotFoundException: org.apache.ibatis.session.SqlSession
- [Solved] SAX2 driver class org.apache.xerces.parsers.SAXParser not found
- [Solved] Error while processing statement: FAILED: Execution Error, return code 3 from org.apache.
- Browser error: Lazy require of app.binding did not set the binding field
- How to Solve install dm.xmlsec.binding Error
- How to Solve linq Statement IsNullOrWhiteSpace Error
- [MAC] How to Solve zsh Error: command not found: umi
- How to Solve Gradle Error: Plugin with id ‘jetty’ not found.
- How to Solve Error: java.io.IOException: Resource [classpath:shiro.ini] could not be found.
- How to Solve VScode 2022 error: msvcp110d.dll not found
- [Solved] @webservice Error: org.apache.cxf.common.i18n.UncheckedException: No operation was found with
- [Solved] Mybatis uses the PageHelper paging plugin error: Could not find method on interface ibatis.executor.Executor named query.