solve org.apache.ibatis . binding.BindingException : invalid bound statement (not found)

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: