今天在学习MyBatis时,IDEA报错了:Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource UserMapper.xml
仔细查看了一下,是我sqlMapConfig.xml中映射文件配置错了
文件用 / 分隔
<mappers>
<mapper resource="com/arun/mapper/UserMapper.xml"></mapper>
</mappers>