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里也是调用接口才会报错,猜测这个应该是往注册中心跑的时候就需要验证一遍吧?流下了菜猫的泪水

相关文章: