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

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

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


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

你可能感兴趣的:(element,type,import,Specifications)