2016-11-25 5 views
2

のために許可されていませんこんにちは、私は、Apache-Tomcatの-8.0.36に、バネの統合Webアプリケーションを展開しています:Mavenの依存関係は次のとおりです。がどのようにHTTPメソッドを解決するには、アウトバウンド・ゲートウェイ

<dependency> 
      <groupId>org.springframework.integration</groupId> 
      <artifactId>spring-integration-core</artifactId> 
      <version>4.3.5.RELEASE</version> 
</dependency> 

けど

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 89 in XML document from ServletContext resource [/WEB-INF/spring/application-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 89; columnNumber: 100; cvc-complex-type.3.2.2: Attribute 'http-method' is not allowed to appear in element 'int-http:outbound-gateway'. 
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] 

私ものWEB-INF/libフォルダに、ばねの統合コア・4.3.5.RELEASE.jarを見ることができます:「私は、アプリケーションを配備していた時間で次の例外を取得メートル戦争。

+0

を、それは – ozgur

答えて

0

:受け入れる/投票してくださいもしそうなら

<dependency> 
    <groupId>org.springframework.integration</groupId> 
    <artifactId>spring-integration-http</artifactId> 
    <version>4.3.5.RELEASE</version> 
</dependency> 
1

あなたの依存関係にspring-integration-httpspring-integration-coreを必ず追加してください。あなたがのpom.xmlに追加の依存関係を追加する必要があります

<dependency> 
    <groupId>org.springframework.integration</groupId> 
    <artifactId>spring-integration-http</artifactId> 
    <version>4.3.5.RELEASE</version> 
</dependency> 
+0

ありがとうございました。私はあなたの反応を見る前に私自身の質問に答えることをやめました。 – chrismikall