首先检查依赖, 发现都引入了
<!-- dubbo -->
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-zookeeper-curator5</artifactId>
<type>pom</type>
<exclusions>
<exclusion>
<artifactId>slf4j-reload4j</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- spring boot starter -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
</dependencies>
检查父包pom 子组件是否都有,发现都有
<modules>
<module>interfaces</module>
<module>consumer</module>
<module>provider</module>
</modules>
检查出问题的模块的parent的artifactId
发现了问题
一定要和父包对应上
<parent>
<artifactId>dubbo-arti</artifactId>
<groupId>org.example</groupId>
<version>1.0-SNAPSHOT</version>
</parent>