您的位置: 首页 > 文章 > mybatis错误: java.io.IOException: Could not find resource org/aptech/xxx/xxx/xxxMaper.xml mybatis错误: java.io.IOException: Could not find resource org/aptech/xxx/xxx/xxxMaper.xml 分类: 文章 • 2024-04-08 07:51:57 在学习Mybatis的时候,进行简单BOkeType的搭建,配置的时候没有问题,然后运行测试时,出现了下面的错误!**原因:**在Mybatis的配置文件中找不到xml文件!(也有可能是Maven构建项目的问题)。 解决方案: 在项目结构中找到自己的,Mybatis-config.xml的配置文件查看,属性名或包名映射是否写错。发现问题:这里的路径包名不对,他必须与Mapper.xml的sql映射包名一致。更改后,运行问题已解决 欢迎访问我的csdn博客,我们一同成长! 不管做什么,只要坚持下去就会看到不一样!在路上,不卑不亢!