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();
    }

相关文章:

  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-05-19
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2021-08-09
  • 2021-07-19
  • 2021-07-06
  • 2021-12-12
  • 2022-02-04
  • 2022-12-23
相关资源
相似解决方案