话单分析之PropertiesUtil

object PropertiesUtil {

val is: InputStream = ClassLoader.getSystemResourceAsStream("hbase_consumer.properties")

var properties =new Properties

properties.load(is)

//根据key 取出来对应的值

  def getProperty(key:String):String = {

val str:String =properties.getProperty(key)

str

}

}

你可能感兴趣的:(话单分析之PropertiesUtil)