zoukankan      html  css  js  c++  java
  • PropertiesUtils(普遍做法)

    public class PropertiesUtil{

      private static Properties properties;

      static{

        InputStream in = null;

        try{

          in = PropertiesUtil.class.getClassLoader().getResourceAsStream("jdbc.properties");

          properties = new Properties();

          properties.load(in);

        }catch(Exception e){

          e.printStackTrace();

        }finally{

          try{

            if(in != null){

              in.close();

            }

          }catch(Exception e){

            e.printStackTrace();

        }

      }

      }

       public static Properties getPropertis(){

        return properties;  

      }

      

    }

  • 相关阅读:
    vim python extension
    aws msk
    Install python3
    sns
    inventory
    批量添加监听端口
    template screen
    DNS name
    add jar and proxy repo
    模型诊断论文心得
  • 原文地址:https://www.cnblogs.com/lingtiaoti/p/9887232.html
Copyright © 2011-2022 走看看