代碼直接上:
入口類
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;
public class MainPane {
public static void main(String[] args) throws Throwable {
File file = new File("acl.properties");
ProperityUtils.loadProperty2System(file.getAbsolutePath());
//System.out.println(System.getProperty("username"));
String userId = System.getProperty("username","user");
String password = System.getProperty("password","pwd");
String url = System.getProperty("url","http://127.0.0.1/web");
String json = ""
String session = Http.sendPost(url, json);
JSONObject jsonobject = new JSONObject(session);
String sid = jsonobject.getString("sessionId");
Str
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/223227.html
標籤:其他
下一篇:第39周雙周賽
