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

.properties namespace能否也支持通过"content"来获取原始的全部文本(可以是一个map?) #2847

Closed
Colstuwjx opened this issue Dec 17, 2019 · 7 comments
Labels

Comments

@Colstuwjx
Copy link

Is your feature request related to a problem? Please describe.
由于我这边是通过"content"这个magic key来获取一个namespace的全部内容,然后dump成文件的形式来管理配置文件和加载配置,而现在如果获取.properties namespace下的"content"内容的话,默认应该是拿不到值的。

为了一致性考虑,是否可以加一下这块支持?把"content"作为namespace级别的magic key,所有类型的namespace都支持这样操作?

Describe the solution you'd like
如题,添加对.properties获取content key时以kv形式返回全部的文本内容。

Describe alternatives you've considered
或者,如果能拿到.properties下面的全部key(是否apollo已经有这样的API?),然后遍历一次,变通生成全部文本内容也可以,但是如果从外界调用API来实现的话,可能性能方面比较糟糕。

Additional context
None

谢谢!

@nobodyiam
Copy link
Member

ConfigService.getConfigFile("application", ConfigFileFormat.Properties).getContent()

@Colstuwjx
Copy link
Author

感谢回复!请问一下,HTTP API 层面是否还没支持?见 agollo相关issue.

@philchia
Copy link

philchia commented Dec 3, 2020

这个接口是从缓存读取的吧?能否支持不带缓存的接口

@nobodyiam
Copy link
Member

@nobodyiam nobodyiam removed the feature request Categorizes issue as related to a new feature. label Nov 6, 2021
@stale
Copy link

stale bot commented Dec 6, 2021

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 6, 2021
@stale
Copy link

stale bot commented Dec 13, 2021

This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.

@stale stale bot closed this as completed Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants