Element type "import" must be followed by either attribute specifications, ">" or "/>".

来源:互联网 发布:车库编号软件 编辑:程序博客网 时间:2024/05/19 23:57

在复制粘贴了网上一段代码<import resource="classpath:META-INF/cxf/cxf.xml"/>后,出现了如下错误:

Element type "import" must be followed by either attribute specifications, ">" or "/>".


错误原因:代码中的空格出现了问题,将代码中的空格删除,重加后保存,问题就解决了。如果是代码段之间,还应检查是不是代码段之间的回车空格问题。

0 0
原创粉丝点击