一个不错的参考博客:https://blog.youkuaiyun.com/weixin_42253927/article/details/80420305
根本原因是导包错误,导致dubbo和springboot没有集成成功
springboot和dubbo集成所需的依赖如下:
<dependency> <groupId>io.dubbo.springboot</groupId> <artifactId>spring-boot-starter-dubbo</artifactId> <version>1.0.0</version> </dependency>