Could not find resource xxx/xxxx/xxx.xml报错解决

简介: Could not find resource xxx/xxxx/xxx.xml报错解决

报错信息:


The error may exist in com/keafmd/IUserDao.xml

Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/keafmd/IUserDao.xml


我在mybatis的入门案例中碰到了这个问题,提示找不到IUserDao.xml文件。

1.png

可是我有这个文件,但是因为我在右键新建文件夹的时候是直接输入的com.keafmd.dao。


正确做法(解决办法)


一级一级的创建文件夹


先右键创建文件夹com,然后点击com再右键创建文件夹keafmd,再点击keafmd右键创建文件夹dao,最后再创建IUserDao.xml文件。


以上就是Could not find resource com/keafmd/IUserDao.xml报错解决的全部内容。


相关文章
|
1月前
|
XML JavaScript 数据格式
打开 XML 文件报错 There is no Unicode byte order mark
打开 XML 文件报错 There is no Unicode byte order mark
|
1月前
Could not open ServletContext resource [/WEB-INF/springmvc-servlet.xml]【解决方案】
Could not open ServletContext resource [/WEB-INF/springmvc-servlet.xml]【解决方案】
|
1月前
|
XML Java Maven
nested exception is java.io.FileNotFoundException: class path resource [springmvc.xml] cannot be ope
nested exception is java.io.FileNotFoundException: class path resource [springmvc.xml] cannot be ope
90 0
nested exception is java.io.FileNotFoundException: class path resource [springmvc.xml] cannot be ope
|
1月前
|
Java 应用服务中间件
解决tomcat启动报错:无法在web.xml或使用此应用程序部署的jar文件中解析绝对的url [http:java.sun.com/jsp/jstl/core]
解决tomcat启动报错:无法在web.xml或使用此应用程序部署的jar文件中解析绝对的url [http:java.sun.com/jsp/jstl/core]
767 1
|
1月前
|
XML JSON 数据格式
xml文档解析报错解决办法
xml文档解析报错解决办法
|
1月前
|
XML 数据格式
restTemplat发post请求报错Content type ‘application/xml;charset=UTF-8‘ not supported“
restTemplat发post请求报错Content type ‘application/xml;charset=UTF-8‘ not supported“
114 1
|
1月前
|
XML Java 数据格式
javaweb实训第五天下午——xml配置文件约束报错问题
问题描述: 如果电脑连不上网,或者网速不好可能会造成Spring框架中xml配置文件出现错误。但是这个错误不影响项目的运行的;
28 0
|
7月前
Cannot download repomd.xml解决CentOS8 yum安装AppStream报错
Cannot download repomd.xml解决CentOS8 yum安装AppStream报错
154 0
|
7月前
|
搜索推荐 Java Maven
maven项目(引入依赖失败, pom.xml 报错\爆红)
maven项目(引入依赖失败, pom.xml 报错\爆红)
581 0
|
11月前
|
XML Java 程序员
Spring启动报错--class path resource [Beans.xml] cannot be opened because it does not exist
程序员不是在去生产bug的路上,那就是在去解决bug的路上。🤣🤣🤣🤣
118 1

相关课程

更多