当前位置: 首页 > 工具软件 > Schema.org > 使用案例 >

xmlns:dubbo=“http://dubbo.apache.org/schema/dubbo“报错

郭阳曜
2023-12-01

请先看看你有没有加dubbo的maven依赖,

官网在做这个demo的时候并没有说要加maven依赖,所以会xml中会报红

<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"
xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd">

请先检查pom.xml有没有dubbo的maven依赖,如果没有,请加以下maven依赖

<!-- https://mvnrepository.com/artifact/org.apache.dubbo/dubbo -->
        <dependency>
            <groupId>org.apache.dubbo</groupId>
            <artifactId>dubbo</artifactId>
            <version>2.7.1</version>
        </dependency>

然后看看,报红部分是不是消失了!!!

 类似资料: