如果仔细看看cprop这个库就不难理解了。
cprop加载配置⽂件的顺序是 :
By default cprop will merge all configurations it can find in the following order:
classpath resource config
file on a file system (pointed by a conf system property or by (load-config :file <path>))
custom configurations, maps from various sources, etc.
System properties
ENV variables
对于ENV的加载也有明确说明
ENV variables lack structure. The only way to mimic the structure is via use of an underscore character.
The _ is converted to - by cprop, so instead, to identify nesting, two underscores can be used.
了解更多详情,请阅读cprop介绍
mysql下载jar包我的期望
像上⾯的命令如果有20个参数需要在启东时指定,估计看那个命令就疯了,那能不能在启东时指定⼀个配置⽂件,⽐如prod-config.edn之类的呢?我没有到,如果有就更⽅便了。
参考
cprop

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。