Client Configure for SEATA 1.0.0
在SEATA 1.0.0 中发布了一个新的feature,可以使用yaml/properties来替换掉我们在之前引入的file.conf 和registry.conf. 只需2步即可达到目的:
- 第一步,更改依赖
<!--seata-->
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-spring-boot-starter</artifactId>
<version>1.0.0</version>
<exclusions>
<exclusion>
<artifactId>seata-all</artifactId>
<groupId>io.seata</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-all</artifactId>
<version>1.0.0</version>
</dependency>

本文介绍了如何在SEATA 1.0.0中使用YAML配置替代原有的file.conf和registry.conf。通过两步完成迁移:更新依赖以解决报错问题,并在YAML配置文件中设置相应属性。提供了详细演示示例链接。
最低0.47元/天 解锁文章
469





