I like the XML notation for specifying global parameters such as connection strings. I also like Mapper annotations. When I try to combine the two, I get this exception.
I had the same issue and was because the name space in mybatis mapper file and the package of the mapper interface were not matching.