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="
原创
2022-03-16 01:07:07 ·
750 阅读 ·
0 评论