Я вижу следующую ошибку при использовании Http.outboundGateway. Может ли кто-нибудь помочь, где я ошибаюсь
@Bean
public IntegrationFlow syncProcessFlow() {
return
// dsl code to fetch a message from Queue
...
.<Event, EventType>route(event -> event.getType(), mapping -> mapping
.channelMapping(EventType.CREATE, "createFlow")
.defaultOutputChannel("nullChannel")
.resolutionRequired(false))
.get();
}
@Bean
public IntegrationFlow createFlow() {
return IntegrationFlows.from("createFlow")
.handle(Http.outboundGateway("http://google.com")
.httpMethod(HttpMethod.GET)
.expectedResponseType(String.class))
.log(LoggingHandler.Level.DEBUG, "response", m -> m.getPayload())
.log(LoggingHandler.Level.DEBUG, "response", m -> m.getHeaders())
.get();
}
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.http.outbound.HttpRequestExecutingMessageHandler#0': Post-processing of merged bean definition failed; nested exception is java.la
ng.IllegalStateException: Failed to introspect Class [org.springframework.integration.http.outbound.AbstractHttpRequestExecutingMessageHandler] from ClassLoader [java.net.URLClassLoader@6e708cdf]
Caused by: java.lang.NoClassDefFoundError: Lorg/springframework/expression/spel/support/SimpleEvaluationContext;