private static void loadConf(String confFile) {
        InputStream in = WordConfTools.class.getClassLoader().getResourceAsStream(confFile);
        if(in == null){
            LOGGER.info("未找到配置文件："+confFile);
            return;
        }
        LOGGER.info("加载配置文件："+confFile);
        loadConf(in);
    }
private static void loadConf ( String confFile ) { InputStream in = WordConfTools . class . getClassLoader ( ) . getResourceAsStream ( confFile ) ; if ( in == null ) { LOGGER . info ( "未找到配置文件：" + confFile ) ; return ; } LOGGER . info ( "加载配置文件：" + confFile ) ; loadConf ( in ) ; }
加载配置文件
@param confFile 类路径下的配置文件