MapperRegistry

BindingException异常:Type interface com.niuyun.dao.UserDao is not known to the MapperRegistry.解决了

## Mybatis出现:`org.apache.ibatis.binding.BindingException: Type interface com.niuyun.dao.UserDao is not known to the MapperRegistry.`的错误,如何解决? #### 错误如 ......

mybatis出现Type interface com.louis.dao.xxxMapper is not known to the MapperRegistry.

原因是资源文件没有读取到,在生成的target中没有对应的文件,解决办法: 1、在pom.xml文件中project中添加如下内容: <build> <resources> <resource> <directory>src/main/resources</directory> <includes> ......
共2篇  :1/1页 首页上一页1下一页尾页