首页 > 数据库技术 > 详细

关于在搭建基础dubbo类项目时,出现nested exception is com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 1 字节的 UTF-8 序列的字节 X无效类问题解决方案。

时间:2019-09-14 20:33:24      阅读:819      评论:0      收藏:0      [点我收藏+]

1.检查项目的全局编码,是否为统一的utf-8

 

2.配置下的dubbo.xml文件,<beans>中的内容不为

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

而是更改为
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">

3.占用了以使用的maven中的文件,需要开立新的maven存储路径。重新在盘中开立一个新的存储区,就可以了。

 

 

绝对可行,如果存在其他问题,请给我留言





关于在搭建基础dubbo类项目时,出现nested exception is com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 1 字节的 UTF-8 序列的字节 X无效类问题解决方案。

原文:https://www.cnblogs.com/LiangPF/p/11519981.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!