com. sun. org. apache. xerces. internal. impl. io. Malformedbytesequenceexception: invalid byte 1 of UTF-8 sequence of 1 byte.
•
Java
Try to modify the mapper registration method
一、具体到xml文件
<mappers>
<mapper resource="code/dwx/mapper/UserMapper.xml"/>
</mappers>
二、使用类名
<mappers>
<mapper class="org.mybatis.builder.AuthorMapper"/>
</mappers>
三、将整个包进行映射
<mappers>
<package name="org.mybatis.builder"/>
</mappers>
注意:将IDEA编码全局设置调到utf8,具体配置可以直接在设置中搜索“File encoding”
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码