ripper234 ripper234 -4 years ago 328
Java Question

"Type interface is not known to the MapperRegistry" exception using mybatis

I'm setting up mybatis using annotations, and getting this helpful exception

Type interface is not
known to the MapperRegistry

Googling it doesn't find anything, nor the user guide. What am I missing?

Answer Source

OK, got it - this is happening because I was using a XML file for the configuration, and annotations for the mappers themselves - and mybatis doesn't find mapper annotations when using an XML config.

See this followup question.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download