10 2018 档案
摘要:public Connection getDbConnection() { Connection conn = null; // 获得连接 DataSource ds = null; try { Context ctx = new InitialContext(); ...
阅读全文
摘要:判断getResponseCode,当返回不是HttpURLConnection.HTTP_OK, HttpURLConnection.HTTP_CREATED, HttpURLConnection.HTTP_ACCEPTED 时,不能用getInputStream(),而是应该用getErrorS
阅读全文