1:map和模式匹配的结合
settings.foreach{case (k,v) => set(k,v)}
2:map转成array
settings.entrySet().asScala.map( x => (x.getKey, x.getValue)).toArray
1:map和模式匹配的结合
settings.foreach{case (k,v) => set(k,v)}
2:map转成array
settings.entrySet().asScala.map( x => (x.getKey, x.getValue)).toArray