简体   繁体   English

如何为 JavaPos 指定 jpos.xml 路径

[英]How can I specify the jpos.xml path for JavaPos

I want to load my jops.xml which includes my JavaPos decives from a custom location.我想从自定义位置加载我的jops.xml ,其中包括我的 JavaPos decives。 How can I do it?我该怎么做?

You can set it with the JposPropertiesConst.JPOS_POPULATOR_FILE_PROP_NAME property.您可以使用JposPropertiesConst.JPOS_POPULATOR_FILE_PROP_NAME属性设置它。

Example how to set it to an env-var:示例如何将其设置为 env-var:

System.setProperty(JposPropertiesConst.JPOS_POPULATOR_FILE_PROP_NAME, System.getenv("jposxml_path"));

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM