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

@NacosConfigurationProperties cannot get the value in the extConfig configuration file, but can only get the value in the shared configuration #292

Open
andotorg opened this issue Aug 16, 2022 · 1 comment

Comments

@andotorg
Copy link

Issue Description

Type: feature request

@NacosConfigurationProperties cannot get the value in the extConfig configuration file, but can only get the value in the shared configuration
I hope it can get the value in extConfig

Describe what happened (or what feature you want)

@NacosConfigurationProperties cannot get the value in the extConfig configuration file, but can only get the value in the shared configuration

Describe what you expected to happen

I hope @NacosConfigurationProperties can get the value in extConfig

How to reproduce it (as minimally and precisely as possible)

  1. shareConfig and extConfig, extConfig have one properties : you.name=lucas ,
  2. use @NacosConfigurationProperties
@Data
@Component
@NacosConfigurationProperties(
        groupId = "${nacos.config.group}",
        dataId = "${nacos.config.data-id}",
        prefix = "you",
        type = ConfigType.PROPERTIES,
        autoRefreshed = true)
public class Name {
    private String name;
}
  1. Name cannot get the value of the corresponding Nacos

Tell us your environment

dev local

Anything else we need to know?

No

@andotorg
Copy link
Author

Can this feature be supported

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

1 participant