ListableBeanFactory#findAnnotationOnBean SpringBoot 低版本适配, 异常时返回原线程池. (#64)

pull/84/head
chen.ma 3 years ago
parent eee7628986
commit 4ccbef3318

@ -73,6 +73,7 @@ public final class DynamicThreadPoolPostProcessor implements BeanPostProcessor {
}
} catch (Exception ex) {
log.error("Failed to create dynamic thread pool in annotation mode.", ex);
return bean;
}
DynamicThreadPoolExecutor dynamicExecutor = (DynamicThreadPoolExecutor) bean;

Loading…
Cancel
Save