Skip to content
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.X版本Nacos是已经不支持bootstrap配置了吗 #3931

Open
chaoszcy opened this issue Dec 27, 2024 · 3 comments
Open

2023.X版本Nacos是已经不支持bootstrap配置了吗 #3931

chaoszcy opened this issue Dec 27, 2024 · 3 comments

Comments

@chaoszcy
Copy link

sca.aliyun.com和example都示意使用application.yaml配置的方式,但是看了几个issue都表明bootstrap也是支持spring.config.import加载的,例如:#3904 #3898

但是自己试了下,配置在bootstrap.yml中明明显示已经读取到文件了,但仍然加载不到配置:
image
image
image
image

但只要把同样的配置移到application.yml就能正常启动,所以现在官方说法到底支不支持bootstrap配置?

@zqr95518
Copy link

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-bootstrap</artifactId>
        </dependency>

这个依赖加了也不行?

@chaoszcy
Copy link
Author

spring-cloud-starter-bootstrap

没有用,不是bootstrap未加载的问题,上面第一张图可以看到bootstrap里的内容已经读取到了,但是不知道哪个环节又把配置丢了

@zqr95518
Copy link

我去,还好没更新,我试了一下,extension-configs失效了就没更新。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants