public static Config load(String filePath) {
        Config config = new Config();
        try (final InputStream stream = Config.class.getResourceAsStream(filePath)) {
            config.props.load(stream);
        } catch (Exception e) {
            throw new WeChatException("加载配置文件出错", e);
        }
        return config;
    }
public static Config load(String filePath) {
        Config config = new Config();
        try (final InputStream stream = Config.class.getResourceAsStream(filePath)) {
            config.props.load(stream);
        } catch (Exception e) {
            throw new WeChatException("加载配置文件出错", e);
        }
        return config;
    }
public static Config load ( String filePath ) { Config config = new Config ( ) ; try ( final InputStream stream = Config . class . getResourceAsStream ( filePath ) ) { config . props . load ( stream ) ; } catch ( Exception e ) { throw new WeChatException ( "加载配置文件出错", e); } return config ; }
加载 ClassPath 下的配置文件

@param filePath
@return
加载 ClassPath 下的配置文件