cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

今天项目引入dubbo,在对应行号报错  (处理步骤 如下)

1. 因为我是maven 工程,所以下暂对应maven,引入jar的可以自行百度

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

2. 对应xml 处头部加入。

xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"

 http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

3. 由于我是eclipse,idea具体步骤请百度之~点击window-》preference 找到如果界面,点击add

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

4. git上下载 dubbo.xsd (点击 网址:https://github.com/alibaba/dubbo

找到下图路径点击进去

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

重复点击

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

重复点击

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

重复点击

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

next

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element


找到dubbo.xsd下载即可

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

5. 步骤3 add 出来界面选择刚才下载的路径

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

location 即,你下载的xsd路径。

key 一定要写这个:http://code.alibabatech.com/schema/dubbo/dubbo.xsd


点击ok 保存、如果错误还没消失,update maven 或者F5 刷新 或者validator 一下即可。


GOOD LUCK!!!

                                                                                                          牧佑~

                                                                                                           2018-04-18 QingDao Software garden