mybatis :BindingException: Type interface xxx.dao.xxxDao is not known to the MapperRegistry

这个错误有几种可能性,现在做一下记录

1.忘记在mybatis的配置文件(sqlMapConfig.xml)中配置 mappers.

2.目录创建错误mybatis的配置文件找不到映射类xxDao

tips:resourses 下面的目录在idea中创建多级目录不能用.  而应该是 com/xxx/xxx

你可能感兴趣的:(Mybatis)