如何消除 SpringSource ToolSuite (Eclipse) 中 Spring Bean 配置文件中的此警告
我有以下小文件来重现警告:
<?xml version="1.0" encoding="UTF-8"?>
<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"
xsi:schemaLocation="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-2.0.xsd">
<int:service-activator input-channel="stageEventChannel"
ref="stageScoreUpdateService" method="receiveEvent" />
</beans>
这会产生警告“未找到引用的 bean 'org.springframework.integration.config.ServiceActivatorFactoryBean#0'”。 “stageEventChannel”和“stageScoreUpdateService”不应是警告的原因,因为我可以使用系统中的不同通道和不同服务来重现它。无论如何,警告似乎是指 ServiceActivatorFactoryBean,这不是我正在实现的。
我正在使用 SpringSource 工具套件 2.8.0.RELEASE。
我在论坛上搜索过,只找到 这个一个人的帖子有非常相似的问题,但没有回复。
I have the following small file to reproduce the warning:
<?xml version="1.0" encoding="UTF-8"?>
<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"
xsi:schemaLocation="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-2.0.xsd">
<int:service-activator input-channel="stageEventChannel"
ref="stageScoreUpdateService" method="receiveEvent" />
</beans>
This produces the warning, "Referenced bean 'org.springframework.integration.config.ServiceActivatorFactoryBean#0' not found". The "stageEventChannel" and "stageScoreUpdateService" should not be the cause of the warning, since I can reproduce it with different channels and different services in my system. In any case, the warning seems to be referring to the ServiceActivatorFactoryBean, which is not what I'm implementing.
I am using SpringSource Tool Suite 2.8.0.RELEASE.
I've searched on the forums and only found this post of a person having a very similar issue but no responses.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
升级到 Spring Integration 2.0.6+
请参阅 https://jira.springsource.org/browse/INT- 2295
Upgrade to Spring Integration 2.0.6+
See https://jira.springsource.org/browse/INT-2295