private static Properties pro = new Properties();
    
    static
    {
        InputStream in = SysUtils.class.getResourceAsStream("/bpmaddress.properties");
        System.out.println("配置文件bpmaddress.properties的流:"+in);
        try
        {
            pro.load(in);
        }
        catch(IOException e)
        {
            e.printStackTrace();
        }
    }
    
    public static String getProperty(String name)
    {
        return pro.getProperty(name).trim();
    }

  

相关文章:

  • 2021-10-30
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-22
  • 2022-12-23
  • 2022-02-15
  • 2021-08-18
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
相关资源
相似解决方案