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

报错:The processing instruction target matching “[xX][mM][lL]” is not allowed.

在写struts配置文件struts.xml时<?xml version="1.0" encoding="UTF-8" ?>报错:The processing instruction target matching "[xX][mM][lL]" is not allowed.
struts配置文件

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

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

发布了118 篇原创文章 · 获赞 479 · 访问量 21万+

猜你喜欢

转载自blog.csdn.net/y_universe/article/details/93658461