1. 程式人生 > >idea匯入eclipse的mave專案報錯nested exception is com.sun.org.apache.xerces.internal.impl.io.MalformedByteSe

idea匯入eclipse的mave專案報錯nested exception is com.sun.org.apache.xerces.internal.impl.io.MalformedByteSe

 org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from URL [file:/F:/tomcat/apache-tomcat-9.0.12/webapps/hx/WEB-INF/classes/spring-mybatis.xml]; nested exception is com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 3 位元組的 UTF-8 序列的位元組 3 無效。

 

解決辦法:

將spring-mybatis.xml的xml複製到 文字.txt 另存為一份編碼為utf-8的複製回去到xml就行了