xml解析 1 字节的 UTF-8 序列的字节 1 无效。

1 字节的 UTF-8 序列的字节 1 无效。
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from file [D:\IdeaProjects\health_parent\health_service_provider\target\health_service_provider-1.0-SNAPSHOT\WEB-INF\classes\spring-redis.xml]; nested exception is com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 1 字节的 UTF-8 序列的字节 1 无效。

解决办法:xml头文件UTF-8改成UTF8就好了

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。