agollo icon indicating copy to clipboard operation
agollo copied to clipboard

请问支持yaml配置格式的读取吗?

Open MadlifeZhou opened this issue 3 years ago • 2 comments

注意到只支持.properties的读取,请问是否支持yaml格式的读取呢?

MadlifeZhou avatar Jul 09 '22 12:07 MadlifeZhou

注意到只支持.properties的读取,请问是否支持yaml格式的读取呢?

支持 yaml 和 yml,通过以下方式格式化。 https://github.com/apolloconfig/agollo/blob/559999e53619fc5e6371345a553970bb0aa16f0a/client.go#L55

zouyx avatar Jul 23 '22 10:07 zouyx

extension.AddFormatParser(constant.YAML, &yaml.Parser{})

原来针对yaml、yml格式的namespace,在指定namespace时要带上后缀,否则解析不了

leoyox avatar Aug 05 '22 08:08 leoyox

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 04 '22 20:10 stale[bot]