SpringCloudAlibaba对应SpringCoud, Nacos, Seata, Springboot版本

吃过的亏,上过的当, SpringCloudAlibaba 对应软件版本

不遵守规则 , 真的很容易崩溃, 不是程序崩溃, 是人崩溃


SpringCloudAlibaba版本说明


2021.x 分支


Spring Cloud Alibaba VersionSpring Cloud VersionSpring Boot Version
2021.0.4.0*Spring Cloud 2021.0.42.6.11
2021.0.1.0Spring Cloud 2021.0.12.6.3
2021.1Spring Cloud 2020.0.12.4.2

2.2.x 分支


适配 Spring Boot 为 2.4,Spring Cloud Hoxton 版本及以下的 Spring Cloud Alibaba 版本按从新到旧排列如下表(最新版本用*标记):

Spring Cloud Alibaba VersionSpring Cloud VersionSpring Boot Version
2.2.9.RELEASE*Spring Cloud Hoxton.SR122.3.12.RELEASE
2.2.8.RELEASESpring Cloud Hoxton.SR122.3.12.RELEASE
2.2.7.RELEASESpring Cloud Hoxton.SR122.3.12.RELEASE
2.2.6.RELEASESpring Cloud Hoxton.SR92.3.2.RELEASE
2.1.4.RELEASESpring Cloud Greenwich.SR62.1.13.RELEASE
2.2.1.RELEASESpring Cloud Hoxton.SR32.2.5.RELEASE
2.2.0.RELEASESpring Cloud Hoxton.RELEASE2.2.X.RELEASE
2.1.2.RELEASESpring Cloud Greenwich2.1.X.RELEASE
2.0.4.RELEASE(停止维护,建议升级)Spring Cloud Finchley2.0.X.RELEASE
5.5.1.RELEASE(停止维护,建议升级)Spring Cloud Edgware1.5.X.RELEASE

组件版本关系


每个 Spring Cloud Alibaba 版本及其自身所适配的各组件对应版本如下表所示(注意,Spring Cloud Dubbo 从 2021.0.1.0 起已被移除出主干,不再随主干演进):

Spring Cloud Alibaba VersionSentinel VersionNacos VersionRocketMQ VersionDubbo VersionSeata Version
2.2.9.RELEASE1.8.52.1.04.9.4~1.5.2
2021.0.4.01.8.52.0.44.9.4~1.5.2
2.2.8.RELEASE1.8.42.1.04.9.3~1.5.1
2021.0.1.01.8.31.4.24.9.2~1.4.2
2.2.7.RELEASE1.8.12.0.34.1.62.7.131.3.0
2.2.6.RELEASE1.8.11.4.24.4.02.7.81.3.0
2021.1 or 2.2.5.RELEASE or 2.1.4.RELEASE or 2.0.4.RELEASE1.9.01.4.14.4.02.7.81.3.0
2.2.3.RELEASE or 2.1.3.RELEASE or 2.0.3.RELEASE1.8.01.3.34.4.02.7.81.3.0
2.2.1.RELEASE or 2.1.2.RELEASE or 2.0.2.RELEASE1.7.11.2.14.4.02.7.61.2.0
2.2.0.RELEASE1.7.11.1.44.4.02.7.4.11.0.0
2.1.1.RELEASE or 2.0.1.RELEASE or 1.5.1.RELEASE1.7.01.1.44.4.02.7.30.9.0
2.2.0.RELEASE1.6.31.1.14.4.02.7.30.7.0

详情内容可访问: 官方版本说明

  • 0
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Seata is an open-source distributed transaction solution that provides a high-performance and easy-to-use distributed transaction coordination service for Spring Boot applications. It supports distributed transaction management across multiple databases, message queues, and other resources, ensuring the consistency and reliability of data operations. To integrate Seata into a Spring Boot application, you need to follow the following steps: 1. Add Seata dependencies to your pom.xml file: ``` <dependency> <groupId>io.seata</groupId> <artifactId>seata-all</artifactId> <version>1.4.1</version> </dependency> ``` 2. Configure Seata in your application.yml file: ``` spring: cloud: alibaba: seata: tx-service-group: my_test_tx_group enable-auto-data-source-proxy: true application-id: my_test_app tx-log: dir: {your_log_dir} name: {your_log_name} max-size: {your_log_max_size} max-history: {your_log_max_history} ``` 3. Enable Seata in your Spring Boot application: ``` @SpringBootApplication @EnableDiscoveryClient @EnableFeignClients @EnableAutoDataSourceProxy @EnableHystrix @EnableAspectJAutoProxy(exposeProxy = true) public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } @Bean public GlobalTransactionScanner globalTransactionScanner() { return new GlobalTransactionScanner("my_test_tx_group", "my_test_app"); } } ``` 4. Use Seata in your business logic: ``` @RestController public class DemoController { @Autowired private DemoService demoService; @RequestMapping("/test") public String test() { demoService.doBusiness(); return "OK"; } } @Service public class DemoService { @Autowired private DemoMapper demoMapper; @GlobalTransactional public void doBusiness() { // business logic using demoMapper } } ``` In the above example, the `@GlobalTransactional` annotation is used to wrap the business logic in a distributed transaction. This ensures that all the database operations performed by the `demoMapper` are atomic and consistent, even if they involve multiple resources. Overall, Seata is a powerful and flexible solution for managing distributed transactions in Spring Boot applications. By following the above steps, you can easily integrate Seata into your project and ensure the reliability and consistency of your data operations.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值