1.3.1.4. 插件自定义配置文件

插件自定义配置文件位于“cfgHome/plugin/插件id”目录下,文件名必须为pluginProperties.xml,例子如下:

<?xml version="1.0" encoding="utf-8"?>
<ctpConfig>
    <samples>
        <test name="test配置">插件配置测试</test>
    </samples>
</ctpConfig>

该例中可通过AppContext.getSystemProperty("samples.test.name")取得“test配置”,AppContext.getSystemProperty("samples.test")取得“插件配置测试”

注意:属性key必须以插件id开始