org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [scheduling.xml]; nested exception is com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 3 字节的 UTF-8 序列的字节 3 无效。

 

解决:解析xml时,有中文,此时把xml文件的头

<?xml version="1.0" encoding="UTF-8"?>

改成:

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

即可!

相关文章:

  • 2021-11-30
  • 2022-12-23
  • 2021-07-24
  • 2021-09-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2021-10-19
  • 2022-02-11
  • 2022-12-23
  • 2021-12-04
相关资源
相似解决方案