mybatis学习中遇到的问题 | 乐文库-凯发k8官网下载客户端

mybatis学习中遇到的问题

1、the error may exist in com.lee.dao.user.usermapper.xml

​ cause: org.apache.ibatis.builder.builderexception: error parsing sql mapper configuration. cause: java.io.ioexception: could not find resource com.lee.dao.user.usermapper.xml

解决方法: 将mapper配置resource中’.‘改为’/’ 2、error creating document instance. cause: org.xml.sax.saxparseexception; linenumber: 5; columnnumber: 5; 1 字节的 utf-8 序列的字节 1 无效。

配置文件编码格式问题:可参考:(141条消息) idea文件编码格式修改为utf-8_小明想成神的博客-csdn博客

在修改idea的编码格式为utf-8

然后在配置文件中先删除页面的编码格式,运行,然后再加上即可


删除


运行测试即可,再加上或者不加上都可以运行了

本文来自网络,不代表乐文库立场,如若转载,请注明出处:https://www.lewenku.com/?p=448236

网站地图