I tried to use the following code and I got as a response: Status: 405 Method Not Allowed. Here is my Http request: http://localhost:8090/services/test?name=test. What's wrong with the code or http request?
@Bean
public IntegrationFlow httpInternalServiceFlow() {
return IntegrationFlows
.from(Http.inboundGateway("/services/test")
.requestMapping(r -> r.params("name")
.methods(HttpMethod.GET))
.payloadExpression("#requestParams.name"))
.get();
}
org.springframework
category to see what's going on with your request on the server. You might have some ServletFilter
up front of that HTTP Inbound Gateway. On the other hand it isn't clear if you have@EnableIntegration
or not... – Artem Bilan