适配低版本 SpringBoot BeanPostProcessor 没有定义 default 方法. (#80)

pull/84/head
chen.ma 3 years ago
parent 2105dc6c21
commit bda5927438

@ -58,6 +58,11 @@ public final class DynamicThreadPoolPostProcessor implements BeanPostProcessor {
.rejected(new ThreadPoolExecutor.AbortPolicy())
.build();
@Override
public Object postProcessBeforeInitialization(Object bean, String beanName) {
return bean;
}
@Override
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
if (bean instanceof DynamicThreadPoolExecutor) {

Loading…
Cancel
Save