java - spring cloud stream 和 spring cloud starter stream kafka 是否适用于 spring boot 1.4.2.RELEASE?
问题描述
我正在尝试使用 Spring Boot 版本 1.4.2.RELEASE 使用 Spring Cloud Stream 和 kafka 运行 Spring Boot 应用程序。但是,应用程序在启动时失败。如果我将 spring boot 版本从 1.4.2.RELEASE 更改为 1.5.12.RELEASE,我可以正常运行项目。那么有没有办法将spring cloud stream和kafka与spring boot 1.4.2.RELEASE一起使用或者引用spring boot 1.4.2与spring cloud stream和kafka不兼容?
这是build.gradle文件:
buildscript {
ext {
springBootVersion = '1.4.2.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Edgware.RELEASE'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-stream'
compile 'org.springframework.cloud:spring-cloud-starter-stream-kafka'
}