GH-2282 Ensure BeanPostProcessors do not triger early initialization

This commit is contained in:
Oleg Zhurakousky
2022-02-16 10:10:37 +01:00
parent 800832d9ac
commit 9ec7cf9b43

View File

@@ -165,7 +165,7 @@ public class BindingServiceConfiguration {
}
@Bean
public BeanPostProcessor globalErrorChannelCustomizer() {
public static BeanPostProcessor globalErrorChannelCustomizer() {
return new BeanPostProcessor() {
@Override
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {