【Sleuth与Redis同时启动导致死锁】
报错原因:
Caused by: org.springframework.beans.factory.BeanCreationNotAllowedException:
Error creating bean with name 'spring.sleuth.sampler-org.springframework.cloud.sleuth.sampler.SamplerProperties':
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!)
通过排查,可以确定是因为引入Sleuth而导致Sleuth和Redis导致的死锁,两个Bean对象都注入不了。