{"id":688,"date":"2023-02-26T14:51:33","date_gmt":"2023-02-26T06:51:33","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=688"},"modified":"2023-04-29T17:57:33","modified_gmt":"2023-04-29T09:57:33","slug":"maven-compile-dubbo-xsd-problem-solution","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/26\/maven-compile-dubbo-xsd-problem-solution\/","title":{"rendered":"Maven\u7f16\u8bd1dubbo.xsd\u95ee\u9898\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"<p><strong>\u95ee\u9898<\/strong>\uff1a\u8fd0\u884cdubbo-demo\u5de5\u7a0b\u62a5\u9519\uff1a<\/p>\n<pre><code>Exception in thread &quot;main&quot; org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http:\/\/dubbo.apache.org\/schema\/dubbo]\nOffending resource: class path resource [META-INF\/spring\/dubbo-demo-provider.xml]<\/code><\/pre>\n<p><!-- more --><\/p>\n<p><strong>\u89e3\u51b3<\/strong>\uff1a<\/p>\n<pre><code class=\"language-xml\">&lt;beans xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;\n       xmlns:dubbo=&quot;http:\/\/dubbo.apache.org\/schema\/dubbo&quot;\n       xmlns=&quot;http:\/\/www.springframework.org\/schema\/beans&quot;\n       xsi:schemaLocation=&quot;http:\/\/www.springframework.org\/schema\/beans http:\/\/www.springframework.org\/schema\/beans\/spring-beans-4.3.xsd\n       http:\/\/dubbo.apache.org\/schema\/dubbo http:\/\/dubbo.apache.org\/schema\/dubbo\/dubbo.xsd&quot;&gt;\n    ...\n\/&gt;<\/code><\/pre>\n<p>\u6539\u4e3a<\/p>\n<pre><code class=\"language-xml\">&lt;beans xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;\n       xmlns:dubbo=&quot;http:\/\/code.alibabatech.com\/schema\/dubbo&quot;\n       xmlns=&quot;http:\/\/www.springframework.org\/schema\/beans&quot;\n       xsi:schemaLocation=&quot;http:\/\/www.springframework.org\/schema\/beans http:\/\/www.springframework.org\/schema\/beans\/spring-beans-4.3.xsd\n       http:\/\/code.alibabatech.com\/schema\/dubbo http:\/\/code.alibabatech.com\/schema\/dubbo\/dubbo.xsd&quot;&gt;\n    ...\n\/&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\uff1a\u8fd0\u884cdubbo-demo\u5de5\u7a0b\u62a5\u9519\uff1a Exception in thread &quot;main&#038;quo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[196],"tags":[195,143],"class_list":["post-688","post","type-post","status-publish","format-standard","hentry","category-dubbo","tag-dubbo","tag-maven"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=688"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/688\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}