2017-06-16 22 views
0

以下の輸入が私のコードで認識されていない認識されていません。春の統合HTTPインポートは

私は、他の輸入品を使用する必要がありますまたは任意の依存関係のバージョンが異なっている必要があります?私は私のGradleファイルに以下の依存関係

buildscript { 
ext { 
    springBootVersion = '1.5.2.RELEASE' 
} 
repositories { 
    jcenter() 
    mavenCentral() 
    maven { url 'http://repo.spring.io/plugins-release' } 
} 
dependencies { 
    classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") 
    classpath('org.springframework.build.gradle:propdeps-plugin:0.0.7') 
    classpath 'org.ajoberstar:gradle-git:1.7.0' 
} 
} 

dependencies { 
compile('org.springframework.boot:spring-boot-starter-actuator') 
compile('org.springframework.boot:spring-boot-actuator-docs') 
compile('org.springframework.boot:spring-boot-starter-integration') 
compile('org.springframework.boot:spring-boot-starter-activemq') 
compile('org.springframework.boot:spring-boot-starter-batch') 
compile('org.springframework.boot:spring-boot-starter-data-jpa') 
compile('org.springframework.boot:spring-boot-starter-cache') 
compile('javax.cache:cache-api') 
compile('org.ehcache:ehcache:3.+') 
compile('org.springframework.cloud:spring-cloud-starter-aws') 
compile('com.h2database:h2') 
compile('org.springframework.boot:spring-boot-starter-security') 
compile('org.springframework.boot:spring-boot-starter-validation') 
compile('org.springframework.retry:spring-retry') 
compile "org.apache.commons:commons-lang3:3.4" 
compile('commons-codec:commons-codec:1.10') 
compile('com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.6.+') 
compile 'org.apache.httpcomponents:httpclient:4.5.+' 
compile 'org.codehaus.woodstox:woodstox-core-asl:4.4.+' 
compile 'com.amazonaws:aws-java-sdk-bom:1.11.115' 
compile 'com.amazonaws:aws-java-sdk-s3' 
compile group: 'commons-io', name: 'commons-io', version: '2.5' 

optional('org.springframework.boot:spring-boot-configuration-processor') 
optional('org.springframework.boot:spring-boot-devtools') 
} 

を持っていますかお知らせ下さい。あなたはこの1つが欠けているよう

答えて

0

はルックス:

compile('org.springframework.integration:spring-integration-http') 

春ブーツは、デフォルトではその依存性を提供していません。

+0

は、私は以下のビルドファイルを使用している他の春のアプリを持っていますが、まだ、これらの依存関係を認識することが可能です: 'buildscript { EXT { springBootVersion =「1.3.3.RELEASE」 springIntegrationVersion =「4.2.4.RELEASEを' }依存関係{ クラスパス( "org.springframework.boot:スプリングブートのGradle-プラグイン:$ {springBootVersion}") クラスパス "com.github.jacobono:のGradle-JAXB-プラグイン:1.3.6" クラスパス 'org.springframework.build.gradle:propdeps-plugin:0.0.7' } } ' – user5758361

+0

上から続き...'依存関係{org.springframework.boot:spring-boot-starter-actuator 'をコンパイルします。org.springframework.boot:spring-boot-starter-integration'をコンパイルします。 ' }' – user5758361

+0

cntd ... 'compile( 'org.springframework.integration:spring-integration-xml') 'org.springframework.boot:spring-boot-starter-security'をコンパイル 'org.springframeworkをコンパイルします。 「org.springframework.boot:spring-boot-configuration-processor」 「org」をコンパイルしてください。「compile」org.springframework.boot:spring-boot-starter-web ' comp.github.ulisesbocchio:jasypt-spring-boot-starter:1.6' .springframework.integration:spring-integration-java-dsl:1.1.2.RELEASE ' コンパイル' org.apache.httpcomponents:httpclient:4.5。+ ' コンパイル 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.6。+' ' – user5758361