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

yml和yaml类型的配置文件应该是一样的吧? #4986

Closed
zihan524 opened this issue Oct 7, 2023 · 3 comments
Closed

yml和yaml类型的配置文件应该是一样的吧? #4986

zihan524 opened this issue Oct 7, 2023 · 3 comments
Labels

Comments

@zihan524
Copy link

zihan524 commented Oct 7, 2023

我看可以创建yml和yaml格式的配置文件,这两个文件应该是一样的呢吧。

@dosubot
Copy link

dosubot bot commented Oct 7, 2023

🤖

是的,你是对的。YML和YAML类型的配置文件是一样的。YAML是"YAML Ain't Markup Language"(YAML不是一种标记语言)的缩写,它是一种人类可读的数据序列化标准格式。YML是YAML的文件扩展名,两者在功能和语法上是完全相同的。

在Apollo配置管理系统中,我们确实支持YML和YAML两种文件格式。你可以在Apollo的源代码中看到,我们有一个JavaScript文件(yaml.min.js),它负责解析和转储YAML文件。这进一步证实了Apollo对YAML和YML文件格式的支持。

因此,无论你选择使用YML还是YAML作为你的配置文件扩展名,Apollo都能够正确处理。

参考源代码:

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

Copy link

stale bot commented Nov 6, 2023

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 Nov 6, 2023
Copy link

stale bot commented Nov 13, 2023

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 Nov 13, 2023
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

1 participant