I\'m setting up mybatis using annotations, and getting this helpful exception
org.apache.ibatis.binding.BindingException: Type interface org.foo.Bar is
Happened to me when creating a shadowJar/bootJar for a spring boot project and using org.springframework.boot gradle plugin
When the jars are zipped inside the bootJar myBatis may fail to find the XML configuration files and will throw the described exception
adding this block in the build.gradle file:
bootJar {
requiresUnpack '**/MyProblematic.jar'
}
solved my problem