public static List<String> loadWhiteListFile(String path) {
        List<String> whitePrefixList = new ArrayList<>();
        InputStream input = null;
        try {
            input = BlackAndWhiteListFileLoader.class.getResourceAsStream(path);
            if (input != null) {
                readToList(input, "UTF-8", whitePrefixList);
            }
            String overStr = SofaConfigs.getOrCustomDefault(SERIALIZE_WHITELIST_OVERRIDE, "");
            if (StringUtils.isNotBlank(overStr)) {
                if (LOGGER.isInfoEnabled()) {
                    LOGGER.info("Serialize whitelist will override with configuration: {}", overStr);
                }
                overrideWhiteList(whitePrefixList, overStr);
            }
        } catch (Exception e) {
            if (LOGGER.isErrorEnabled()) {
                LOGGER.error(e.getMessage(), e);
            }
        } finally {
            closeQuietly(input);
        }
        return whitePrefixList;
    }
Load blacklist from file.

@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
codec/codec-api/src/main/java/com/alipay/sofa/rpc/codec/common/BlackAndWhiteListFileLoader.java