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
28k stars 8.34k forks source link

After attempting the upgrade of springcloud-alibaba-2023.0.1.3, the configuration center function is not available #3876

Closed Comven closed 5 days ago

Comven commented 3 weeks ago

The normal version is spring-cloud-2023.0.3+spring-boot-3.2.11+spring-cloud-alibaba-2023.0.1.2 or spring-cloud-2023.0.3+spring-boot-3.3.5+spring-cloud-alibaba-2023.0.1.2

The abnormal version is spring-cloud-2023.0.3+spring-boot-3.2.11+spring-cloud-alibaba-2023.0.1.3 or spring-cloud-2023.0.3+spring-boot-3.3.5+spring-cloud-alibaba-2023.0.1.3

The logs under normal circumstances are as follows 正常情况nacos-config日志

The logs of abnormal situations are as follows 异常情况nacos-config日志

By comparison, there are no startup logs related to nacos config in version 2023.0.1.3

herodotus-ecosystem commented 3 weeks ago

猜测是这个问题导致的 #3878

chickenlj commented 3 weeks ago

@Comven Could you please provide more information for us to reproduce:

  1. configuration details in your application.yaml or application.properties
  2. the code snippet you use to get nacos config data
chickenlj commented 3 weeks ago

The log screenshot you given here is expected. The missing logs actually belong to nacos-client and has been logged to the logging files of nacos-client in the new version.

Comven commented 5 days ago

Finally, the following configuration was successfully set up in bootstrap

spring.config.import[0]=nacos:${spring.application.name}
spring.config.import[1]=nacos:${spring.application.name}.properties

The 2023.0.1.3 version no longer supports pulling and configuring default names, which feels like there are more configurations. If each program uses the configuration center, it must configure this parameter.

Additionally, this prompt issue still needs to be resolved

image