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

前端 未结 7 679
野性不改
野性不改 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:38

    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

    
    
    
    

    this will have you up and running with a config.xml and annotated interfaces

提交回复
热议问题