"config" : { "type" : "org.nutz.ioc.impl.PropertiesProxy", "fields" : {// 配置文件路径 "paths" : [ "config/"] } }我的配置文件在dao.js 里面配置读取config下的properties。但是现在要求config目录随时改变,放在jar包外,这么配置,求大神帮忙!
通过环境变量吗?
是的,通过args 传入的
或者用更直接的办法 --> 继承PropertiesProxy,哈哈
args可不是环境变量...
继承PropertiesProxy吧, 然后type改成自己的子类, 想怎么玩都行了
好的,谢谢啦~