Spring集成DSL Http入站网关

Spring集成DSL Http入站网关,spring,spring-integration,Spring,Spring Integration,我尝试使用以下代码,得到了响应:Status:405 Method Not Allowed。这是我的Http请求:。 代码或http请求有什么问题 @Bean public IntegrationFlow httpInternalServiceFlow() { return IntegrationFlows .from(Http.inboundGateway("/services/test")

我尝试使用以下代码,得到了响应:Status:405 Method Not Allowed。这是我的Http请求:。 代码或http请求有什么问题

@Bean
      public IntegrationFlow httpInternalServiceFlow() {
        return IntegrationFlows
                .from(Http.inboundGateway("/services/test")
                        .requestMapping(r -> r.params("name")
                        .methods(HttpMethod.GET))
                        .payloadExpression("#requestParams.name"))
                .get();
    }

最后我设法找到了问题的根源。
spring boot starter amqp将servlet:'messageDispatcherServlet'映射到[/services/*],由于我已将端点注册到/services/test应用程序,因此出现冲突

请打开
org.springframework
类别的调试逻辑级别,以查看您的请求在服务器上发生了什么。您可能在HTTP入站网关前面有一些Servlet
过滤器。另一方面,还不清楚您是否有
@enableeintegration
接收到一个对uri[/services/test]的请求,该请求不应被采样[false]不存在父span-创建新的span成功完成请求清除了线程绑定请求上下文:org.apache.catalina.connector。RequestFacade@4f7f63c4Retrieving交付Consumer@3bb8d847:,通道=缓存的兔子通道:AMQChannel,conn:Proxy@5a9d5e2共享兔子连接:SimpleConnection@32a4284d ,acknowledgeMode=AUTO-local queue size=0 uri为[/services/test]的请求尚未由任何Sleuth组件处理。这意味着您很可能正在使用自定义HandlerMappings,并且没有添加Sleuth的TraceHandlerInterceptor。Sleuth将创建一个span,以确保调用图在Zipkin中保持有效,因为响应未成功,所以分离span跟踪???侦探的担心和你的问题有什么关系?也许你可以在我们这边分享简单的启动应用程序?