因为,在maven中是默认取recourse包下去寻找.xml文件的,要想实现在java目录下寻找到目标文件的话,是要对pom.xml文件进行一下修改
然后就可以成功被找到啦!
关于使用maven部署的mybatis项目中,java目录下的Mapper.xml文件无法被找到的现象
最新推荐文章于 2024-03-11 23:56:55 发布
因为,在maven中是默认取recourse包下去寻找.xml文件的,要想实现在java目录下寻找到目标文件的话,是要对pom.xml文件进行一下修改
然后就可以成功被找到啦!