springCould整合feign提示required a bean of type xxx that could not be found

谷粒商城项目:

启动时报错了

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")

相关推荐

  1. springcloud之Feign超时提示Read timed out executing POST

    2024-07-14 07:52:01       56 阅读
  2. SpringClould超时问题汇总

    2024-07-14 07:52:01       27 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-14 07:52:01       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-14 07:52:01       71 阅读
  3. 在Django里面运行非项目文件

    2024-07-14 07:52:01       58 阅读
  4. Python语言-面向对象

    2024-07-14 07:52:01       69 阅读

热门阅读

  1. zookeeper在哪里能用到

    2024-07-14 07:52:01       19 阅读
  2. 开源科学工程技术软件

    2024-07-14 07:52:01       17 阅读
  3. 2060:【例1.1】计算机输出

    2024-07-14 07:52:01       24 阅读
  4. Debian ip6tables allow IPv6 traffic on TCP port 18917

    2024-07-14 07:52:01       25 阅读
  5. ubuntu 物理内存爆炸而不使用虚拟内存的问题

    2024-07-14 07:52:01       20 阅读
  6. Unity宏和编辑器

    2024-07-14 07:52:01       21 阅读
  7. (C++栈与队列02) 栈的应用 单调队列

    2024-07-14 07:52:01       27 阅读
  8. 基于物联网的智慧校园建设与发展

    2024-07-14 07:52:01       32 阅读