0
点赞
收藏
分享

微信扫一扫

Mybatis-config.xml中映射Mapper.xml文件遇到的错误

刚开始配置如下

<mappers>
       <mapper resource="com.xieny.dao/UserMapper.xml" />
    </mappers>

报错如下

Caused by: java.io.IOException: Could not find resource com.xieny.dao/UserMapper.xml
在这里插入图片描述修改路径格式后成功运行

<mappers>
       <mapper resource="com/xieny/dao/UserMapper.xml" />
    </mappers>
举报

相关推荐

0 条评论