“Type interface is not known to the MapperRegistry” exception using mybatis

前端 未结 7 680
野性不改
野性不改 2021-02-02 15:23

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

org.apache.ibatis.binding.BindingException: Type interface org.foo.Bar is

相关标签:
7条回答
  • 2021-02-02 15:51

    Type interface org.domain.classmapper is not known to the MapperRegistry

    MyBatis throws this exception if the full package / class is not entered into the mapper xml namespace.

    e.g. <mapper namespace="classmapper"> causes exception, but

    <mapper namespace="org.domain.classmapper"> works

    0 讨论(0)
提交回复
热议问题