MyBatis: Invalid bound statement (not found) possible cause of the error

MyBatis: Invalid bound statement (not found) possible cause of the error

Other causes of this problem solving reference:

1. Check the package name xml file is located and whether the package name Mapper interface where the agreement

<mapper namespace="com.xiaopengwei.mapper.UserInfoMapper">

mapper of the namespace written wrong! ! ! Note system modifications.

2.UserDao no way in UserDao.xml, and then execute UserDa o methods will be reported error

The method return value is 3.UserDao List <User>, and select element is not correctly configured ResultMap, only the configuration or the ResultType!

4. If you are sure there are no more questions, please xml file corresponding to any modifications, such as deleting a blank line, save Problem Solution

5. look mapper XML configuration path is correct

mybatis.mapper-locations=classpath*:mybatis/oracle/*.xml

6. Most of the content in question xml file, note the following!

Guess you like

Origin www.cnblogs.com/xpwi/p/11225139.html