src/org/nutz/ioc/impl/PropertiesProxy.java
private List<NutResource> getResources(String... paths) {
        List<NutResource> list = new ArrayList<NutResource>();
        if (null != keyIndex) {
            try {
                String vmJsonStr = "";
                Properties p = System.getProperties();
                for (Object key : p.keySet()) {
                    if (((String) key).startsWith(VM_NUTZ_CONF_PATH + keyIndex))
                        vmJsonStr = p.getProperty((String) key).trim();
                }
                if (Strings.isNotBlank(vmJsonStr)) {
                    paths = vmJsonStr.split("\\,");
                }
            } catch (Exception e) {
                if (log.isDebugEnabled()) {
                    log.debug("-D" + VM_NUTZ_CONF_PATH + keyIndex + " value is invalid:  " + e.getMessage());
                }
            }
        }
        for (String path : paths) {
            try {
                List<NutResource> resources = Scans.me().loadResource("^.+[.]properties$", path);
                list.addAll(resources);
            }
            catch (Exception e) {
                if (ignoreResourceNotFound) {
                    if (log.isWarnEnabled()) {
                        log.warn("Could not load resource from " + path + ": " + e.getMessage());
                    }
                } else {
                    throw Lang.wrapThrow(e);
                }
            }
        }
        return list;
    }
private List<NutResource> getResources(String... paths) {
        List<NutResource> list = new ArrayList<NutResource>();
        if (null != keyIndex) {
            try {
                String vmJsonStr = "";
                Properties p = System.getProperties();
                for (Object key : p.keySet()) {
                    if (((String) key).startsWith(VM_NUTZ_CONF_PATH + keyIndex))
                        vmJsonStr = p.getProperty((String) key).trim();
                }
                if (Strings.isNotBlank(vmJsonStr)) {
                    paths = vmJsonStr.split("\\,");
                }
            } catch (Exception e) {
                if (log.isDebugEnabled()) {
                    log.debug("-D" + VM_NUTZ_CONF_PATH + keyIndex + " value is invalid:  " + e.getMessage());
                }
            }
        }
        for (String path : paths) {
            try {
                List<NutResource> resources = Scans.me().loadResource("^.+[.]properties$", path);
                list.addAll(resources);
            }
            catch (Exception e) {
                if (ignoreResourceNotFound) {
                    if (log.isWarnEnabled()) {
                        log.warn("Could not load resource from " + path + ": " + e.getMessage());
                    }
                } else {
                    throw Lang.wrapThrow(e);
                }
            }
        }
        return list;
    }
加载指定文件/文件夹的Properties文件

@param paths
需要加载的Properties文件路径
@return 加载到的Properties文件Resource列表