apache / incubator-seata

:fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.
https://seata.apache.org/
Apache License 2.0
25.35k stars 8.79k forks source link

配置中心使用SpringCloudConfig,如何配置? #2520

Open fengyws opened 4 years ago

fengyws commented 4 years ago

config { file、nacos 、apollo、zk、consul、etcd3、springCloudConfig type = "file" nacos { serverAddr = "localhost" namespace = "" group = "SEATA_GROUP" } consul { serverAddr = "127.0.0.1:8500" } apollo { app.id = "seata-server" apollo.meta = "http://192.168.1.204:8801" namespace = "application" } zk { serverAddr = "127.0.0.1:2181" session.timeout = 6000 connect.timeout = 2000 username = "" password = "" } etcd3 { serverAddr = "http://localhost:2379" } file { name = "file.conf" } }

配置中心是支持springCloudConfig的,但是不知道如何配置,能否加个说明?

wangliang181230 commented 4 years ago

1.1.0版本还不支持

fengyws commented 4 years ago

感谢回答!请问会有支持springcloudconfig的计划吗?大概什么版本会有?

wangliang181230 commented 4 years ago

额,我不是seata团队成员哦。看到1.2.0-SNAPSHOT里,暂时只是把抛出NotSupportException异常的代码删除了,估计很快要支持了吧。

fengyws commented 4 years ago

好,多谢哈

wangliang181230 commented 4 years ago

你可以继续关注 seata/config/seata-config-spring-cloud 里的SpringCloudConfiguration.java类的变更。

lcmvs commented 3 years ago

现在client端用starter没啥问题,但是server端本身就不是spring boot的,感觉springcloudconfig不太好支持吧。

你可以继续关注 seata/config/seata-config-spring-cloud 里的SpringCloudConfiguration.java类的变更。