alibaba / spring-cloud-alibaba

Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.
https://sca.aliyun.com
Apache License 2.0
27.47k stars 8.19k forks source link

引入spring-cloud-starter-alibaba-seata 会导致 shared-configs 配置失效 #3664

Closed Anymous526 closed 2 months ago

Anymous526 commented 2 months ago
3.1.10 2022.0.0.0 2022.0.0 在引入 com.alibaba.cloud spring-cloud-starter-alibaba-seata 后会让 shared-configs 配置失效
yuluo-yx commented 2 months ago

@Anymous526 shared-configs Is this property a configuration item in nacos config?

if so, Can you provide an example?

Anymous526 commented 2 months ago

https://gitlab.tospinomall.com/sunxun/springcloud-seata.git

yuluo-yx commented 2 months ago

@Anymous526 Can you delete the extra files in it? Can you keep only the smallest unit that reproduces the problem?

You can also provide demos in the form of github repository addresses.

ruansheng8 commented 2 months ago

For Spring Boot 2.4 and above, we recommend using spring.config.import, for example:

spring:
  config:
    import:
      - nacos:nacos-config-example.properties?refresh=true
Anymous526 commented 2 months ago

好像已经搞定了。

yuluo-yx commented 2 months ago

好像已经搞定了。

Congratulation!

Anymous526 commented 2 months ago

For Spring Boot 2.4 and above, we recommend using spring.config.import, for example:

spring:
  config:
    import:
      - nacos:nacos-config-example.properties?refresh=true

正确的操作。