运行mybatis时出现"3 字节的 UTF-8 序列的字节 3 无效。"报错时在pom.xml下加入以下代码即可。

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

或者在xml中将编码格式改为GBK

<?xml version="1.0" encoding="GBK"?>  

相关文章:

  • 2021-11-29
  • 2021-10-18
  • 2022-12-23
  • 2022-03-02
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-24
  • 2021-09-23
  • 2021-10-19
  • 2022-02-11
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案