亮,亮

导航

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration...

错误信息 写道
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'.

问题根源在于Eclipse无法识别上面的两个标签,解决方法如下:
1、下载相应的**.xsd 文件
2、选择elcipse的window-->preferences,弹出相应对话框;
3、在对话框的的type filter text位置数据 xml c,您将看到XML Catalog,点击进入;
4、选择User Specified Entries,单击添加,然后, 在弹出的对话框相应位置填入
  Location: D:\java\source\dubbo\dubbo-2.8.4\META-INF\dubbo.xsd
  Key Type: Schema Location
  Key:http://code.alibabatech.com/schema/dubbo

 

5、重复4的动作 

与步骤4相比主要是key 不一样

 6、完成

 应用

 

posted on 2016-07-13 17:14  亮,亮  阅读(4672)  评论(1编辑  收藏  举报