700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > 报错:The processing instruction target matching “[xX][mM][lL]” is not allowed.在写配置文件时

报错:The processing instruction target matching “[xX][mM][lL]” is not allowed.在写配置文件时

时间:2018-07-16 04:23:18

相关推荐

报错:The processing instruction target matching “[xX][mM][lL]” is not allowed.在写配置文件时

错误:ERROR : The processing instruction target matching "[xX][mM][lL]" is not allowed.

异常解释:xml文件不能被解析,一般出现这样的问题在于xml格式上,并且问题多出现在xml文件的头部

解决方式(适用于所有.xml)

<?xml version="1.0" encoding="UTF-8" ?>前多余的注释、空格和空行等去掉即可。

要添加依赖属性,不能在xml之前写,因为xml作为头部解析用来告诉解析器一些相关信息。

如hbase-site.xml下,要把以下代码放在文件底部,并且不能拥有两个configuration属性

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。