What diference between -Dconfig.resource and -Dconfig.file in akka?

吃可爱长大的小学妹 提交于 2019-12-23 19:15:12

问题


According to the Akka Configuration documentation:

What is the difference between the -Dconfig.resource and -Dconfig.file arguments?


回答1:


System properties can be used to force a different config source:

  • config.resource specifies a resource name - not a basename, i.e. application.conf not application
  • config.file specifies a filesystem path, again it should include the extension, not be a basename
  • config.url specifies a URL

Loading configuration with -Dconfig.file is the way to specify an external file to load,

-Dconfig.resource - for internal resources.

Taken from: Configuration file syntax and features.



来源:https://stackoverflow.com/questions/27355474/what-diference-between-dconfig-resource-and-dconfig-file-in-akka

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!