在查看了树脂文档之后,它主要讨论的只是使用一个属性文件。
我知道resin.xml可以引用以下多个属性文件:
<树脂:属性path="${__DIR__}/custom.properties“optional=真正的”/>“
是否有一种方法将标准属性文件(i.e.resin.properties)替换为多个其他属性文件,(最重要的是)将它们放置在标准${RESIN_HOME}/conf目录之外的其他位置?
使用什么参数,我可以运行树脂,以便它可以定位那些自定义属性文件?
提前谢谢你!
发布于 2015-02-18 19:05:00
树脂:properties@ path可以是一个完整的路径,如下所示:
path="/etc/resin/resin.properties"或者,树脂可以使用${}表达式解析-D参数。
< resin:properties path="${location}/custom.properties" optional="true"/>例如:
bin/resin.sh -Dlocation=/custom/resin startresin.xml:
< resin:properties path="${location}/custom.properties" optional="true"/>
< resin:properties path="${location}/custom2.properties" optional="true"/>https://stackoverflow.com/questions/28591567
复制相似问题