91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 36.98MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-07-23
  • 語言: Java
  • 標簽: android??后臺java??

資源簡介

安卓的課程設計,文檔齊全。通過Gosn解析今日頭條API的json數據,.采用listview適配器進行遍歷。有通過java后臺的登錄,注冊,查看個人信息以及修改密碼功能。頁面設計美觀。素材均合法,不會出現版權糾紛的問題。android端用android studio 2.3.3運行絕對不會出問題,java后臺用myEclipse運行。系統環境變量jdk1.8。

資源截圖

代碼片段和文件信息

package?com.gxwz.edu.db;
import?java.io.InputStream;
import?java.lang.reflect.Field;
import?java.lang.reflect.Method;
import?java.sql.*;
import?java.util.ArrayList;
import?java.util.List;
import?java.util.Properties;

public?class?DbUtil?{

private?static?String?url?=?null;

private?static?String?user?=?null;

private?static?String?password?=?null;

private?static?String?driverClass?=?null;

/**
?*?鍙敞鍐屼竴嬈?
?*/
static{
try?{
/**
?*?璇誨彇jdbc.properties
?*/
//鍒涘緩Properties瀵硅薄
Properties?prop?=?new?Properties();
//鏋勯?犺緭鍏ユ祦
Class?clazz?=?DbUtil.class;
InputStream?in?=?clazz.getResourceAsStream(“/jdbc.properties“);
//鍔犺澆鏂囦歡
prop.load(in);
//璇誨彇
url?=?prop.getProperty(“url“);
user?=?prop.getProperty(“user“);
password?=?prop.getProperty(“password“);
driverClass?=?prop.getProperty(“driverClass“);
Class.forName(“com.mysql.jdbc.Driver“);
}?catch?(Exception?e)?{
//?TODO?Auto-generated?catch?block
e.printStackTrace();
}
}


/**
?*?鑾峰彇榪炴帴鏂規硶
?*/
public?static?Connection?getConnection(){
try?{
Connection?conn?=?DriverManager.getConnection(urluserpassword);
return?conn;
}?catch?(Exception?e)?{
e.printStackTrace();
throw?new?RuntimeException();
}
}

/**
?*?閲婃斁璧勬簮鏂規硶
?*/
public?static?void?close(ResultSet?rsPreparedStatement?ptmtConnection?conn){

if(rs!=null){
try?{
rs.close();
}?catch?(Exception?e)?{
e.printStackTrace();
throw?new?RuntimeException();
}
}

if(ptmt!=null){
try?{
ptmt.close();
}?catch?(Exception?e)?{
e.printStackTrace();
throw?new?RuntimeException();
}
}

if(conn!=null){
try?{
conn.close();
}?catch?(Exception?e)?{
e.printStackTrace();
throw?new?RuntimeException();
}
}
}

public?static?void?close(PreparedStatement?ptmtConnection?conn){

if(ptmt!=null){
try?{
ptmt.close();
}?catch?(Exception?e)?{
e.printStackTrace();
throw?new?RuntimeException();
}
}

if(conn!=null){
try?{
conn.close();
}?catch?(Exception?e)?{
e.printStackTrace();
throw?new?RuntimeException();
}
}
}

public?static?void?close(PreparedStatement?ptmt)?{
if(ptmt!=null){
try?{
ptmt.close();
}?catch?(Exception?e)?{
e.printStackTrace();
throw?new?RuntimeException();
}
}
}


public?static?void?close(Connection?conn)?{
if(conn!=null){
try?{
conn.close();
}?catch?(Exception?e)?{
e.printStackTrace();
throw?new?RuntimeException();
}
}
}


/**
?*?灝佽澧炲姞鍒犻櫎淇敼鐨勯?氱敤宸ュ叿鏂規硶
?*?@param?sql?SQL璇彞
?*?@param?objs SQL璇彞鍗犱綅絎﹀疄鍙傦紝濡傛灉娌℃湁鍙傛暟鍒欎紶鍏ull
?*?@return?榪斿洖澧炲垹鏀圭殑緇撴灉錛岃繑鍥炵被鍨嬩負int
?*/
public?static?int?executeDML(String?sqlobject...objs){
//?澹版槑jdbc鍙橀噺
Connection?conn?=?null;
PreparedStatement?ptmt?=?null;
int?i?=?-1;
try?{
//?鑾峰

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-06-18?11:28??AndroidNews2\
?????文件?????????127??2019-05-28?21:16??AndroidNews2\.gitignore
?????目錄???????????0??2019-06-18?11:28??AndroidNews2\.gradle\
?????目錄???????????0??2019-06-18?11:28??AndroidNews2\.gradle\3.3\
?????目錄???????????0??2019-06-18?11:28??AndroidNews2\.gradle\3.3\taskArtifacts\
?????文件??????235019??2019-06-14?20:32??AndroidNews2\.gradle\3.3\taskArtifacts\fileHashes.bin
?????文件?????5809275??2019-06-14?20:32??AndroidNews2\.gradle\3.3\taskArtifacts\fileSnapshots.bin
?????文件??????121899??2019-06-14?20:32??AndroidNews2\.gradle\3.3\taskArtifacts\taskArtifacts.bin
?????文件??????????17??2019-06-18?11:27??AndroidNews2\.gradle\3.3\taskArtifacts\taskArtifacts.lock
?????目錄???????????0??2019-06-18?11:28??AndroidNews2\.gradle\3.3\tasks\
?????目錄???????????0??2019-06-18?11:28??AndroidNews2\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\
?????目錄???????????0??2019-06-18?11:28??AndroidNews2\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\
?????文件??????497045??2019-06-14?19:58??AndroidNews2\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin
?????文件??????????17??2019-06-14?19:58??AndroidNews2\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock
?????目錄???????????0??2019-06-18?11:28??AndroidNews2\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\
?????文件???????22410??2019-06-14?19:58??AndroidNews2\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.bin
?????文件??????????17??2019-06-14?19:58??AndroidNews2\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.lock
?????目錄???????????0??2019-06-18?11:28??AndroidNews2\.idea\
?????文件?????????686??2019-05-28?21:16??AndroidNews2\.idea\compiler.xml
?????目錄???????????0??2019-06-18?11:28??AndroidNews2\.idea\copyright\
?????文件??????????76??2019-05-28?21:16??AndroidNews2\.idea\copyright\profiles_settings.xml
?????文件?????????626??2019-05-28?21:16??AndroidNews2\.idea\gradle.xml
?????目錄???????????0??2019-06-18?11:28??AndroidNews2\.idea\inspectionProfiles\
?????文件?????????788??2019-05-31?14:48??AndroidNews2\.idea\inspectionProfiles\Project_Default.xml
?????文件?????????241??2019-05-30?14:19??AndroidNews2\.idea\inspectionProfiles\profiles_settings.xml
?????目錄???????????0??2019-06-18?11:28??AndroidNews2\.idea\libraries\
?????文件?????????251??2019-05-30?21:42??AndroidNews2\.idea\libraries\android_async_http_1_4_8.xml
?????文件?????????263??2019-05-30?21:42??AndroidNews2\.idea\libraries\android_smart_image_view_1_0_0.xml
?????文件?????????688??2019-05-28?21:17??AndroidNews2\.idea\libraries\animated_vector_drawable_26_0_0_alpha1.xml
?????文件?????????652??2019-05-28?21:17??AndroidNews2\.idea\libraries\appcompat_v7_26_0_0_alpha1.xml
?????文件?????????456??2019-05-28?21:17??AndroidNews2\.idea\libraries\constraint_layout_1_0_2.xml
............此處省略3035個文件信息

評論

共有 條評論