gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 07:09:25 25 4
gpt4 key购买 nike

我正在尝试使用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com