谷粒商城项目:
启动时报错了
Field wareSkuService in com.atguigu.gulimall.ware.service.impl.PurchaseServiceImpl required a bean of type 'com.atguigu.gulimall.ware.feign.ProductFeignService' that could not be found.
解决方案:
启动类中使用注解@EnableFeignClients
:扫描和注册feign客户端的bean定义,并且加上包名
@EnableFeignClients(basePackages = "com.atguigu.gulimall.ware.feign")