Made MessageHandlerMethodFactory bean temporarily prototype

This commit is contained in:
Oleg Zhurakousky
2019-07-25 18:00:38 +02:00
parent e682fe0324
commit a69f9b18d3

View File

@@ -65,6 +65,7 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Role;
import org.springframework.context.annotation.Scope;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.core.env.Environment;
import org.springframework.core.env.StandardEnvironment;
@@ -134,6 +135,7 @@ public class BinderFactoryAutoConfiguration {
@Bean(IntegrationContextUtils.MESSAGE_HANDLER_FACTORY_BEAN_NAME)
@Scope("prototype")
public static MessageHandlerMethodFactory messageHandlerMethodFactory(
CompositeMessageConverterFactory compositeMessageConverterFactory,
@Nullable Validator validator, ConfigurableListableBeanFactory clbf) {