I'm setting up mybatis using annotations, and getting this helpful exception
org.apache.ibatis.binding.BindingException: Type interface org.foo.Bar is not known to the MapperRegistry
Googling it doesn't find anything, nor the user guide. What am I missing?
just for anyone who ended up here because they're new to mybatis
http://www.mybatis.org/core/configuration.html
http://www.mybatis.org/mybatis-3/configuration.html
in the config file mappers section
<mappers>
<mapper class="my.package.com.MyClass"/>
</mappers>
this will have you up and running with a config.xml and annotated interfaces
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With