更新FastJSON

调整ChromeDriver参数
This commit is contained in:
2022-05-03 09:40:34 +08:00
parent 4031b07b0b
commit e0f81620a3
4 changed files with 51 additions and 32 deletions

View File

@@ -45,9 +45,10 @@ public class ConfigTools {
String src = readFile(file);
if (src != null) {
try {
JSONObject json = JSON.parseObject(src);
JSONObject json = JSONObject.parseObject(src,JSONObject.class);
return json.getObject(key, t);
} catch (Exception e) {
e.printStackTrace();
}
}

View File

@@ -29,6 +29,7 @@ public class WebClient {
private WebClient() {
System.setProperty("webdriver.chrome.driver",
ConfigTools.load(ConfigTools.CONFIG, "chrome", String.class));
System.setProperty("webdriver.chrome.whitelistedIps", "");
// java.util.logging.Logger.getLogger("org.openqa.selenium").setLevel(Level.OFF);
}