Skip to content

feature: config support profile and multiple values (#3552)#3553

Open
wangYX657211334 wants to merge 2 commits intoalibaba:2021.xfrom
wangYX657211334:feature-config-supported-load-profile
Open

feature: config support profile and multiple values (#3552)#3553
wangYX657211334 wants to merge 2 commits intoalibaba:2021.xfrom
wangYX657211334:feature-config-supported-load-profile

Conversation

@wangYX657211334
Copy link

'spring.config.import with nacos' support profile and multiple values

Describe what this PR does / why we need it

Keep consistent with spring boot config resolver behavior

Does this pull request fix one issue?

#3552

Describe how you did it

modify com.alibaba.cloud.nacos.configdata.NacosConfigDataLocationResolver

  1. each location splice profile
  2. each location spilt

Describe how to verify it

#3552

Special notes for reviews

'spring.config.import with nacos' support profile and multiple values
@CLAassistant
Copy link

CLAassistant commented Dec 22, 2023

CLA assistant check
All committers have signed the CLA.

@gebing
Copy link

gebing commented Mar 15, 2024

that's the wanted feature, pls merge ASAP

@shiyiyue1102
Copy link
Collaborator

We recommend specifying the specific dataId and group directly through spring.config.import. If you need to specify a profile, we suggest using a ${} placeholder in the dataId, such as spring.cnfig.import=nacos: application-${profile}. yml&group=mygroup

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

Successfully merging this pull request may close these issues.

4 participants