首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >没有spring-boot的Spring-cloud-stream应用可能吗?

没有spring-boot的Spring-cloud-stream应用可能吗?
EN

Stack Overflow用户
提问于 2016-09-21 07:48:28
回答 1查看 563关注 0票数 2

我正在尝试使用spring-cloud-stream rabbitmq编写一个应用程序,但没有使用spring-boot。当我执行gradle dependencies时,我看到cloud-stream依赖于spring引导模块。可以不使用spring-boot而使用spring-cloud-stream吗?谁能给我举个例子?

代码语言:javascript
复制
compile - Dependencies for source set 'main'.
+--- org.springframework.cloud:spring-cloud-stream: -> 1.0.2.RELEASE
|    +--- org.springframework.boot:spring-boot-starter-actuator:1.3.5.RELEASE -> 1.2.1.RELEASE
|    |    +--- org.springframework.boot:spring-boot-actuator:1.2.1.RELEASE
|    |    |    +--- org.springframework.boot:spring-boot:1.2.1.RELEASE
|    |    |    |    +--- org.springframework:spring-core:4.1.4.RELEASE
|    |    |    |    \--- org.springframework:spring-context:4.1.4.RELEASE
|    |    |    |         +--- org.springframework:spring-aop:4.1.4.RELEASE
|    |    |    |         |    +--- aopalliance:aopalliance:1.0
|    |    |    |         |    +--- org.springframework:spring-beans:4.1.4.RELEASE
|    |    |    |         |    |    \--- org.springframework:spring-core:4.1.4.RELEASE
|    |    |    |         |    \--- org.springframework:spring-core:4.1.4.RELEASE
|    |    |    |         +--- org.springframework:spring-beans:4.1.4.RELEASE (*)
|    |    |    |         +--- org.springframework:spring-core:4.1.4.RELEASE
|    |    |    |         \--- org.springframework:spring-expression:4.1.4.RELEASE
|    |    |    |              \--- org.springframework:spring-core:4.1.4.RELEASE
|    |    |    +--- org.springframework.boot:spring-boot-autoconfigure:1.2.1.RELEASE
|    |    |    |    \--- org.springframework.boot:spring-boot:1.2.1.RELEASE (*)
|    |    |    +--- com.fasterxml.jackson.core:jackson-databind:2.4.4
|    |    |    |    +--- com.fasterxml.jackson.core:jackson-annotations:2.4.0 -> 2.4.4
|    |    |    |    \--- com.fasterxml.jackson.core:jackson-core:2.4.4
|    |    |    +--- org.springframework:spring-core:4.1.4.RELEASE
|    |    |    \--- org.springframework:spring-context:4.1.4.RELEASE (*)
|    |    \--- org.springframework:spring-core:4.1.4.RELEASE
|    +--- org.springframework.boot:spring-boot-starter-web:1.3.5.RELEASE -> 1.2.1.RELEASE
|    |    +--- org.springframework.boot:spring-boot-starter-tomcat:1.2.1.RELEASE
|    |    |    +--- org.apache.tomcat.embed:tomcat-embed-core:8.0.15 -> 7.0.57
|    |    |    +--- org.apache.tomcat.embed:tomcat-embed-el:8.0.15 -> 7.0.57
|    |    |    +--- org.apache.tomcat.embed:tomcat-embed-logging-juli:8.0.15 -> 7.0.57
|    |    |    \--- org.apache.tomcat.embed:tomcat-embed-websocket:8.0.15 -> 7.0.57
|    |    |         \--- org.apache.tomcat.embed:tomcat-embed-core:7.0.57
|    |    +--- com.fasterxml.jackson.core:jackson-databind:2.4.4 (*)
|    |    +--- org.hibernate:hibernate-validator:5.1.3.Final
|    |    |    +--- javax.validation:validation-api:1.1.0.Final
|    |    |    +--- org.jboss.logging:jboss-logging:3.1.3.GA
|    |    |    \--- com.fasterxml:classmate:1.0.0
|    |    +--- org.springframework:spring-core:4.1.4.RELEASE
|    |    +--- org.springframework:spring-web:4.1.4.RELEASE
|    |    |    +--- org.springframework:spring-aop:4.1.4.RELEASE (*)
|    |    |    +--- org.springframework:spring-beans:4.1.4.RELEASE (*)
|    |    |    +--- org.springframework:spring-context:4.1.4.RELEASE (*)
|    |    |    \--- org.springframework:spring-core:4.1.4.RELEASE
|    |    \--- org.springframework:spring-webmvc:4.1.4.RELEASE
|    |         +--- org.springframework:spring-beans:4.1.4.RELEASE (*)
|    |         +--- org.springframework:spring-context:4.1.4.RELEASE (*)
|    |         +--- org.springframework:spring-core:4.1.4.RELEASE
|    |         +--- org.springframework:spring-expression:4.1.4.RELEASE (*)
|    |         \--- org.springframework:spring-web:4.1.4.RELEASE (*)
|    +--- org.springframework:spring-messaging:4.2.6.RELEASE -> 4.1.4.RELEASE
|    |    +--- org.springframework:spring-beans:4.1.4.RELEASE (*)
|    |    +--- org.springframework:spring-context:4.1.4.RELEASE (*)
|    |    \--- org.springframework:spring-core:4.1.4.RELEASE
|    +--- org.springframework.integration:spring-integration-core:4.2.5.RELEASE -> 4.1.2.RELEASE
|    |    +--- org.springframework:spring-tx:4.1.4.RELEASE
|    |    |    +--- org.springframework:spring-beans:4.1.4.RELEASE (*)
|    |    |    \--- org.springframework:spring-core:4.1.4.RELEASE
|    |    +--- org.projectreactor:reactor-core:1.1.4.RELEASE -> 1.1.5.RELEASE
|    |    |    +--- com.goldmansachs:gs-collections:5.1.0
|    |    |    |    \--- com.goldmansachs:gs-collections-api:5.1.0
|    |    |    +--- com.lmax:disruptor:3.2.1
|    |    |    +--- io.gatling:jsr166e:1.0
|    |    |    \--- org.slf4j:slf4j-api:1.7.7 -> 1.7.8
|    |    +--- org.springframework:spring-aop:4.1.4.RELEASE (*)
|    |    +--- org.springframework.retry:spring-retry:1.1.1.RELEASE -> 1.1.2.RELEASE
|    |    |    \--- org.springframework:spring-core:4.0.4.RELEASE -> 4.1.4.RELEASE
|    |    +--- org.springframework:spring-context:4.1.4.RELEASE (*)
|    |    \--- org.springframework:spring-messaging:4.1.4.RELEASE (*)
|    +--- org.springframework:spring-tuple:1.0.0.RELEASE
|    |    +--- com.esotericsoftware:kryo-shaded:3.0.3
|    |    |    +--- com.esotericsoftware:minlog:1.3.0
|    |    |    \--- org.objenesis:objenesis:2.1
|    |    +--- org.springframework:spring-core:4.2.6.RELEASE -> 4.1.4.RELEASE
|    |    +--- com.fasterxml.jackson.core:jackson-databind:2.6.6 -> 2.4.4 (*)
|    |    \--- org.springframework:spring-context:4.2.6.RELEASE -> 4.1.4.RELEASE (*)
|    +--- org.springframework.integration:spring-integration-tuple:1.0.0.RELEASE
|    |    +--- org.springframework:spring-tuple:1.0.0.RELEASE (*)
|    |    \--- org.springframework.integration:spring-integration-core:4.2.5.RELEASE -> 4.1.2.RELEASE (*)
|    \--- org.springframework.retry:spring-retry:1.1.2.RELEASE (*)
+--- org.springframework.cloud:spring-cloud-starter-stream-rabbit: -> 1.0.2.RELEASE
|    +--- org.springframework.cloud:spring-cloud-stream-binder-rabbit:1.0.2.RELEASE
|    |    +--- org.springframework.cloud:spring-cloud-stream:1.0.2.RELEASE (*)
|    |    +--- org.springframework.cloud:spring-cloud-stream-codec:1.0.2.RELEASE
|    |    |    +--- com.esotericsoftware:kryo-shaded:3.0.3 (*)
|    |    |    \--- com.fasterxml.jackson.core:jackson-annotations:2.6.6 -> 2.4.4
|    |    +--- org.springframework.boot:spring-boot-starter-amqp:1.3.5.RELEASE -> 1.2.1.RELEASE
|    |    |    +--- org.springframework:spring-core:4.1.4.RELEASE
|    |    |    +--- org.springframework:spring-messaging:4.1.4.RELEASE (*)
|    |    |    +--- org.springframework:spring-tx:4.1.4.RELEASE (*)
|    |    |    \--- org.springframework.amqp:spring-rabbit:1.4.1.RELEASE -> 1.4.2.RELEASE
|    |    |         +--- com.rabbitmq:amqp-client:3.4.2 -> 3.4.3
|    |    |         +--- org.springframework:spring-messaging:4.1.3.RELEASE -> 4.1.4.RELEASE (*)
|    |    |         +--- org.springframework.retry:spring-retry:1.1.2.RELEASE (*)
|    |    |         +--- org.springframework:spring-tx:4.1.3.RELEASE -> 4.1.4.RELEASE (*)
|    |    |         +--- org.springframework.amqp:spring-amqp:1.4.2.RELEASE
|    |    |         |    \--- org.springframework:spring-core:4.1.3.RELEASE -> 4.1.4.RELEASE
|    |    |         \--- org.springframework:spring-context:4.1.3.RELEASE -> 4.1.4.RELEASE (*)
|    |    +--- org.springframework.integration:spring-integration-amqp:4.2.5.RELEASE -> 4.1.2.RELEASE
|    |    |    +--- org.springframework.amqp:spring-rabbit:1.4.2.RELEASE (*)
|    |    |    \--- org.springframework.integration:spring-integration-core:4.1.2.RELEASE (*)
|    |    \--- org.springframework.boot:spring-boot-starter-logging:1.3.5.RELEASE -> 1.2.1.RELEASE
|    |         +--- org.slf4j:jcl-over-slf4j:1.7.8
|    |         |    \--- org.slf4j:slf4j-api:1.7.8
|    |         +--- org.slf4j:jul-to-slf4j:1.7.8
|    |         |    \--- org.slf4j:slf4j-api:1.7.8
|    |         +--- org.slf4j:log4j-over-slf4j:1.7.8
|    |         |    \--- org.slf4j:slf4j-api:1.7.8
|    |         \--- ch.qos.logback:logback-classic:1.1.2
|    |              +--- ch.qos.logback:logback-core:1.1.2
|    |              \--- org.slf4j:slf4j-api:1.7.6 -> 1.7.8
|    +--- org.springframework.boot:spring-boot-starter-actuator:1.3.5.RELEASE -> 1.2.1.RELEASE (*)
|    +--- org.springframework.boot:spring-boot-starter-web:1.3.5.RELEASE -> 1.2.1.RELEASE (*)
|    +--- org.springframework.integration:spring-integration-jmx:4.2.5.RELEASE -> 4.1.2.RELEASE
|    |    \--- org.springframework.integration:spring-integration-core:4.1.2.RELEASE (*)
|    \--- org.springframework.cloud:spring-cloud-stream:1.0.2.RELEASE (*)
\--- org.projectlombok:lombok: -> 1.14.8
EN

回答 1

Stack Overflow用户

发布于 2016-09-21 20:54:04

不能;Spring Cloud Stream使用了很多Spring Boot特性;这是必需的。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39605418

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档