org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name ‘eurekaAutoServiceRegistration’: Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

记录一个坑: Error creating bean with name ‘eurekaAutoServiceRegistration‘
几个人找了一晚上没定位到问题,网上搜基本也是说什么web组件未引用什么的。
第二天找到问题,@FeignClient实现类里,post方法参数未标明@RequestBody,这块基本是用idea自动生成的,所以很容易漏注解。

报错不算很友好,平时普通controller里也是调用接口才会报错,猜测这个应该是往注册中心跑的时候就需要验证一遍吧?流下了菜猫的泪水

相关文章:

  • 2022-01-02
  • 2021-08-30
  • 2021-08-15
  • 2021-09-25
  • 2021-04-03
  • 2021-06-17
  • 2021-04-14
  • 2021-12-04
猜你喜欢
  • 2022-01-27
  • 2022-12-23
  • 2021-05-29
  • 2021-06-19
  • 2021-11-08
相关资源
相似解决方案