hystrix 的默认配置文件名是什么
What is the default config file name for hystrix
https://github.com/Netflix/Hystrix/wiki/Configuration 中列出了很多 hystrix 的设置。但是我在文档中没有找到默认hystrix/archaius会加载的默认属性文件名是什么。
我的问题是,是否有默认属性文件?如果没有,我如何指定一个?
如果您查看 Archaius wiki 中的 Getting Started 页面,您会发现以下解释:
There are two ways to get Archaius working out of the box by using a local configuration file to feed dynamic properties to your application.
- By default, Archaius will look for a file named “config.properties” on the application’s classpath and read its content as configuration properties. The file can be also in a jar file’s root directory.
- In addition, you can define a system property
archaius.configurationSource.additionalUrls
that contains the URL path to a local configuration file.
https://github.com/Netflix/Hystrix/wiki/Configuration 中列出了很多 hystrix 的设置。但是我在文档中没有找到默认hystrix/archaius会加载的默认属性文件名是什么。
我的问题是,是否有默认属性文件?如果没有,我如何指定一个?
如果您查看 Archaius wiki 中的 Getting Started 页面,您会发现以下解释:
There are two ways to get Archaius working out of the box by using a local configuration file to feed dynamic properties to your application.
- By default, Archaius will look for a file named “config.properties” on the application’s classpath and read its content as configuration properties. The file can be also in a jar file’s root directory.
- In addition, you can define a system property
archaius.configurationSource.additionalUrls
that contains the URL path to a local configuration file.