gpt4 book ai didi

spring-integration - 没有 spring-boot 的 Spring-cloud-stream 应用程序是否可行?

转载 作者:行者123 更新时间:2023-12-02 20:57:57 26 4
gpt4 key购买 nike

我正在尝试使用 spring-cloud-streamrabbitmq 编写一个应用程序,但不使用 spring-boot。当我执行 gradle dependency 时,我发现 cloud-stream 依赖于 spring boot 模块。是否可以在没有 spring-boot 的情况下使用 spring-cloud-stream ?有人可以给我举一些例子吗?

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

最佳答案

没有; Spring Cloud Stream 利用了很多 Spring Boot 功能;这是必需的。

关于spring-integration - 没有 spring-boot 的 Spring-cloud-stream 应用程序是否可行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39605418/

26 4 0