代码直接上:
入口类
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