public static ParameterTool getParameterTool(String[] args){
        try {
            return ParameterTool
                    .fromPropertiesFile(PropertiesUtil.class.getResourceAsStream("FilePath"))
                    .mergeWith(ParameterTool.fromArgs(args))
                    .mergeWith(ParameterTool.fromSystemProperties());
        }catch (IOException e){
            log.error("读取配置文件错误",e);
        }
       return ParameterTool.fromSystemProperties();
    }

相关文章: