-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
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
【2023.0.3.2】从 2023.0.1.2 升级至 2023.0.3.2 配置中心不读取配置文件 #3940
Comments
谁说不是呢,不支持就不支持吧, |
Nacos 配置中心进阶指南 |
指定的spring.profiles.active无效导致读取不到配置,如果把nacos的相关配置放入application.yml就能够读取到配置。使用bootstrap也是一样的。。。 |
把spring.config.import的配置放入对应的application-${profile}.yml中就行了,应用启动时会先加载spring.config.import然后才是spring.profiles.active所以就导致了读取不到配置 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我翻阅了不少 issues 得出的结论就是配置方式发上了变化(但是官方没有任何的声明),我有如下几个问题?
spring.config.import
的方式?原来的配置模式是有什么弊端吗?2024.0.0
或者2023.1.0.0
并做出明确标注?spring.config.import
配置很乱,这种类 url 参数的模式并没有原来的对象形式好。我看这个问题是在
2023.0.1.3
开始出现的,我暂时放弃升级,等待完善。PS:这种做法显得太不专业了(其实我这个白嫖党没有资格说这个话,但是我还是要提一下)
The text was updated successfully, but these errors were encountered: