Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource

喜夏-厌秋 提交于 2020-01-30 01:50:15

配置Mybatis遇到的问题


org.apache.ibatis.exceptions.PersistenceException: 
### Error building SqlSession.
### The error may exist in com.smbms.dao.UserMapper.xml
### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com.smbms.dao.UserMapper.xml
	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)

这个显然是mapper.xml文件配置出了问题。 

我解决的方法是,修改分隔符(将.换成\)

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!