近来在eclipse中导入了一个web项目,但是发现项目上有红色的叉号。

原来是spring中关于dubbo的配置文件报错了。

Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'.

 

解决方法:

从网上下载下来dubbo.xsd文件

在eclipse 的偏好设置里,mac下   command+,搜索框中输入xml回车,在搜索出来的结果中选择XML Catalog,右边选择User Specified Entries,点击Add,Location中选择你刚刚下载下来的xsd文件。在Key这一项,记得修改为:http://code.alibabatech.com/schema/dubbo/dubbo.xsd

点击ok。之后。在出现红叉的xml文件上右键>validate。即可解决。

相关文章:

  • 2022-01-06
  • 2021-03-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2021-08-10
  • 2022-12-23
猜你喜欢
  • 2021-10-08
  • 2022-01-12
  • 2021-06-08
  • 2021-11-17
  • 2021-08-31
  • 2022-01-12
相关资源
相似解决方案