Mybatis程序报错:Caused by: java.io.IOException: Could not find resource com/company/dao/UserMapper
收起
可能配置文件的位置不对,参考这个吧 mybatis报错:Could not find resource com.dao.UserMapper.xml Could not find resource com/dao/UserMapper._qsf1013的博客-CSDN博客 mybatis报错:Could not find resource com.dao.UserMapper.xmlCould not find resource com/dao/UserMapper.xml注意这两种错误是不一样的,主要在于核心配置文件config.xml(核心配置文件名)中如何对mapper.xml文件进行注册的。两种注册方式如下(也可能有其他的方式)<mappers><!-- 方法一:使用xml文件进行注册,注意:这里是斜线--> https://blog.csdn.net/fsq0827/article/details/117260154
报告相同问题?