配置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文件配置出了问题。
我解决的方法是,修改分隔符(将.换成\)