update putconfig
This commit is contained in:
parent
2eea762446
commit
36e93f76d0
@ -1,6 +1,7 @@
|
|||||||
package com.loafle.overflow.crawler;
|
package com.loafle.overflow.crawler;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -25,6 +26,9 @@ public abstract class Crawler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void putConfig(String id,Map<String,Object> o) throws Exception {
|
public void putConfig(String id,Map<String,Object> o) throws Exception {
|
||||||
|
if (configs == null) {
|
||||||
|
configs = new HashMap<String,Map<String,Object>>();
|
||||||
|
}
|
||||||
configs.put(id,o);
|
configs.put(id,o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user