版本问题

来源:9-16 Spring Cloud Stream-编写消费者

huizai_2014

2019-11-02

1、在引入stream-rocketmq依赖时候要加版本号,否则找不到包

org.springframework.cloud
spring-cloud-starter-stream-rocketmq
0.9.0.RELEASE

2、在加@EnableBinding(Sink.class)注解的时候,SpringBoot 版本在2.2.0时候启动报错,降到2.1.9 OK

pom.xml




org.springframework.cloud
spring-cloud-dependencies
Greenwich.SR1
pom
import



com.alibaba.cloud
spring-cloud-alibaba-dependencies
2.1.0.RELEASE
pom
import


写回答

1回答

大目

2019-11-02

您好,请回到第四章,课上有详细介绍boot,cloud,alibaba三者之间的版本兼容性关系的哈。 请务必用兼容的版本哈。 目前最新的兼容版本是 boot 2.1, cloud greenwich, alibaba 2.1.0。用2.2不兼容。 此外,建议尽量用和课程一致的版本,否则,比如您用alibaba2.1.0,至少会踩到2个小坑。 比如,2.1.0的groupid,改成了com.alibaba.cloud
0
0

Spring Cloud Alibaba微服务从入门到进阶

面向未来微服务:熟练掌握Spring Cloud Alibaba

3085 学习 · 1324 问题

查看课程