Today in doing MyBatis, encountered a mistake, we look at this error: Org.apache.ibatis.binding.BindingException:Type interface cn.mybatis_chop10_1. Dao. Iempdao is isn't known to the mapperregistry.
I looked for after looking for, is not find out, the internet has not found a specific solution, so, I began from Mybatis-config.xml to DAO, and then to mapper.xm inside a sentence to see, until I see:
<mapper namespace= "Cn.mybatis_chop10_1.dao. Empmapper ">
This line of time, suddenly dawned, it is the back of the empmapper write wrong, to change it on the line, such as mine is:
<mapper namespace= "Cn.mybatis_chop10_1.dao. Iempdao ">
In this tell everyone, must be careful, careful, and then carefully ... Especially when renaming or ctrl+c,ctrl+v, pay particular attention to ...
Finally in the recommendation: MyBatis Reverse Generation entity class, DAO layer, Mapper: click here