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

前端 未结 7 684
野性不改
野性不改 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. causes exception, but

    works

提交回复
热议问题