问题描述: 解决办法: 在启动类增加扫描注解: @ComponentScan(basePackages = {"com.atguigu.springcloud.service"}) 添加如下: 运行成功。