-
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
'spring.config.import with nacos' no load profile properties #2450
Comments
Yep, this is the difference. Old way will listening multiple configs base on profile. In most case, we not use all of them, so it's kind of a waste. Now, you can configure like this. spring:
profiles:
active: prod,dev
---
spring:
config:
activate:
on-profile: "dev"
import: optional:nacos:test-dev.yml
---
spring:
config:
activate:
on-profile: "prod"
import: optional:nacos:test-prod.yml |
ok, i can configure like it. By the way, this implementation in compliance with springboot specifications ? Here's the note from springboot document: springboot-features.external-config.files.profile-specific |
If configs are from external stores, i don't think it's appropriate, sometimes it makes people feel confused. But we need to discuss whether this feature is supported. |
这是来自QQ邮箱的自动回复邮件。
您好,我已经收到您的邮件。我将尽快给您回复。
|
how can i let nacosPropertySourceLocator work add spring-cloud-boostrap.jar and add boostarp.yaml ? |
Which Component
Nacos Config - V2021.0.1.0
Describe the bug
'
spring.config.import
with nacos config' no load profile properties. this difference from 'Bootstrap with nacos config'difference between the two
1. Bootstrap with nacos config
NacosPropertySourceLocator
2.
spring.config.import
with nacos configNacosConfigDataLoader
The text was updated successfully, but these errors were encountered: