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.99k stars 8.35k forks source link

Failed to obtain nacos information after upgrading to 2023.0.1.3 #3877

Open jfly-cloud opened 3 weeks ago

jfly-cloud commented 3 weeks ago

Which Component Nacos config

Describe the bug After upgrading to 2023.0.1.3, the namespace and group under nacos config cannot be configured, causing failure to obtain nacos configuration information.

Screenshots image

Additional context MacOS 、Java21 、 Version 2023.0.1.3

herodotus-ecosystem commented 3 weeks ago

难说是这个问题导致的 #3878

chickenlj commented 3 weeks ago

@jfly-cloud Could you please provide more details.

Do you have spring.config.import specified?

causing failure to obtain nacos configuration information. What's the exact failure? How do you use nacos config to get the new value?

chickenlj commented 3 weeks ago

Would be great if you can provide a demo that can reproduce the issue

yuluo-yx commented 3 weeks ago

@jfly-cloud you can first refer to the documentation to compare whether the configuration file is correct.

jfly-cloud commented 3 weeks ago

If I upgrade to 2023.0.1.3, spring.cloud.nacos.config.namespace and spring.cloud.nacos.config.group no longer take effect, please check.

yuluo-yx commented 3 weeks ago

If I upgrade to 2023.0.1.3, spring.cloud.nacos.config.namespace and spring.cloud.nacos.config.group no longer take effect, please check.

refer to the advanced guide. It is recommended to use the spring.config.import configuration method in 2021 and above versions.

https://sca.aliyun.com/docs/2022/user-guide/nacos/advanced-guide/?spm=5176.29160081.0.0.74805c72TsH1o1#%E8%87%AA%E5%AE%9A%E4%B9%89-namespace-%E7%9A%84%E9%85%8D%E7%BD%AE

jfly-cloud commented 3 weeks ago

Please note that versions before 2023.0.1.3 are available.

chickenlj commented 3 weeks ago

@jfly-cloud Could you please provide more details.

Do you have spring.config.import specified?

causing failure to obtain nacos configuration information. What's the exact failure? How do you use nacos config to get the new value?

@jfly-cloud Can you provide the above information, thanks.

jfly-cloud commented 3 weeks ago

The screenshot is very clear, According to the documentation, I am using(bootstrap.yml):

User-defined namespace configurations

User-defined Group configuration

It is no longer available after upgrading to 2023.0.1.3.

jfly-cloud commented 3 weeks ago

image image