We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
版本: Spring Boot: 3.3.0 Spring Cloud: 2023.0.2 spring-cloud-starter-alibaba-nacos-config: 2023.0.1.0 spring-cloud-starter-gateway 使用的是反应式的,非mvc架构 程序可以正常启动,配置中心连接也正常,如下所示:
能启动,说明程序可以读取到配置文件了,经测试发现,如果找不到文件或者配置文件中,不存在对应的属性的话,程序在启动时会报错的。 但是在获取属性的值时,返回null,获取值的方式如下:
在nacos中的配置如下:
调试好久不知道问题发生在了哪,换成非spring cloud gateway的程序,读取同一个配置文件时没有问题的,怀疑是使用spring clould gateway的响应式模式导致的。 请问该问题该如何解决?
The text was updated successfully, but these errors were encountered:
请提交issue 到Spring Cloud Alibaba社区排查。
从你的描述和日志中,应用已经从nacos中获取到了配置, 至于应用和框架为什么没有使用该配置,已经超出了nacos的作用范围。
Sorry, something went wrong.
No branches or pull requests
版本:
![image](https://private-user-images.githubusercontent.com/6573014/347673794-06836f7b-48a3-4aa1-8c65-6558fa9a5e38.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMTA1MzcsIm5iZiI6MTcyNDExMDIzNywicGF0aCI6Ii82NTczMDE0LzM0NzY3Mzc5NC0wNjgzNmY3Yi00OGEzLTRhYTEtOGM2NS02NTU4ZmE5YTVlMzgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYX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j2mKnbV677xTIAitTS2Il8)
Spring Boot: 3.3.0
Spring Cloud: 2023.0.2
spring-cloud-starter-alibaba-nacos-config: 2023.0.1.0
spring-cloud-starter-gateway 使用的是反应式的,非mvc架构
程序可以正常启动,配置中心连接也正常,如下所示:
能启动,说明程序可以读取到配置文件了,经测试发现,如果找不到文件或者配置文件中,不存在对应的属性的话,程序在启动时会报错的。
![image](https://private-user-images.githubusercontent.com/6573014/347673904-0f3c7d5b-b36c-4c36-baf0-8e25652209f0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMTA1MzcsIm5iZiI6MTcyNDExMDIzNywicGF0aCI6Ii82NTczMDE0LzM0NzY3MzkwNC0wZjNjN2Q1Yi1iMzZjLTRjMzYtYmFmMC04ZTI1NjUyMjA5ZjAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTlUMjMzMDM3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzI3MjgxM2ZkYjRiNTEyMmJiNjVjZGY0OTU5MDVjNTQyYzk4ZmUyNjk5NWMzNzgyOTM2M2E1MWIzNGEwMzgwMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.isMczGaSKQW-wRR7iuHAAB11lv0vGnat5muInoWFPoM)
但是在获取属性的值时,返回null,获取值的方式如下:
在nacos中的配置如下:
![Uploading image.png…]()
调试好久不知道问题发生在了哪,换成非spring cloud gateway的程序,读取同一个配置文件时没有问题的,怀疑是使用spring clould gateway的响应式模式导致的。
请问该问题该如何解决?
The text was updated successfully, but these errors were encountered: