java - 无法在Spring集成中的service-activator上设置 "input-channel"?

标签 java spring spring-integration

我正在尝试使用 spring 集成运行一些测试,但遇到了这个奇怪的错误。

enter image description here

它告诉我我不能在服务激活器上有输入 channel ,但我之前已经这样做过几次了,在the documentation中它到处都在使用。

这是我的命名空间配置。

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:file="http://www.springframework.org/schema/integration/file"
xmlns:feed="http://www.springframework.org/schema/integration/feed"
xmlns:jms="http://www.springframework.org/schema/integration/jms"
xsi:schemaLocation="http://www.springframework.org/schema/integration/feed http://www.springframework.org/schema/integration/feed/spring-integration-feed.xsd
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
    http://www.springframework.org/schema/integration/file http://www.springframework.org/schema/integration/file/spring-integration-file.xsd
    http://www.springframework.org/schema/integration/jms http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd">

最佳答案

如果你的 IDE 存在问题。看起来像 Eclipse。

尝试为您的项目打开 Spring Nature。

或者只是不同意并继续开发。

如果你不正确,运行时会正确地告诉你。

另一方面,请考虑放弃 XML 配置,转而支持 Java DSL 和/或注释支持。

是的,尝试升级到最新的 version - 2.0.0.RC1 非常非常旧。

关于java - 无法在Spring集成中的service-activator上设置 "input-channel"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39458094/

相关文章:

java - @Embeddables 的 @ElementCollection 每个都有 @Embeddable 字段会导致 "Could not find a setter"异常

java - 如何使用 JFreeChart 自定义 XYLineChart

java - java.lang.AbstractMethodError android.text.TextUtils.writeToParcel崩溃可能与可访问性有关

java - 我们可以对 View 进行 Spring 通用映射吗?

spring - 当多个配置文件不活动时如何有条件地声明 Bean?

rabbitmq - 使用 Spring 与 RabbitMQ 集成

java - Spring 集成: how to send a Byte Array as POST parameter with an http:outbound-gateway?

spring - 动态上下文 - Autowiring

Java 如何返回监听器外部的变量

java - LibGDX -> LWJGL 应用程序中的异常 - 无法转换为