2016-09-12 3 views
1

私は春の統合でいくつかのテストを実行しようとしていますが、私はこの奇妙なエラーに遭遇しています。それは私に言っていますspring-integrationでservice-activatorに「input-channel」を設定できませんか?

enter image description here

私は、サービスアクティベータのinput-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"> 

答えて

1

あなたのIDEに問題があります。 Eclipseのように見えます。

プロジェクトのSpring Natureに切り替えてみてください。

それとも、それに同意せずに開発を進めてください。

あなたが正しくない場合は、ランタイムによって正しく通知されます。

一方、Java DSLおよび/または注釈のサポートのためにXML設定から離れることを検討してください。

はい、最新のversionにアップグレードしてください。2.0.0.RC1は非常に古いものです。

+0

答えをありがとう、私はJava DSLを見てみましょう。また、どのバージョンを使っていたのか、どうやって知りましたか? –

関連する問題