异常描述:
           The matching wildcard is strict, but no declaration can be found for element 'dubbo:reference'
            Multiple annotations found at this line:
   - schema_reference.4: Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd', because 1) could not 
    find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:reference'.
原因:在导入Maven项目时.Xml文件里面的Dubbo元素会出现引用错误,加载不dubbo的xsd配置文件.
 
解决方案:

eclispe-->window-->preferences-->xml catalog-->add 注意KEY 需要以/dubbo.xsd结尾,如下图所示

使用Maven加载项目有Dubbo框架时出现的常见异常情况-LMLPHP

另外:

mvn compile 编译源码

mvn install 安装到本地库

git提交时防止source folder为空,为空则不提交该source folder

git使用时先创建master分支,然后使用create brance创建develop目录,最后使用switch切换到develop后进行提交。

04-18 18:14
查看更多