大战熟女丰满人妻av-荡女精品导航-岛国aaaa级午夜福利片-岛国av动作片在线观看-岛国av无码免费无禁网站-岛国大片激情做爰视频

專注Java教育14年 全國咨詢/投訴熱線:400-8080-105
動力節點LOGO圖
始于2009,口口相傳的Java黃埔軍校
首頁 學習攻略 Java學習 Java學生管理系統項目案例分析

Java學生管理系統項目案例分析

更新時間:2022-06-17 10:33:42 來源:動力節點 瀏覽1218次

以下是Java學生管理系統項目的源碼分析:

package com.student.util; 
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException; 
public class DbUtil {
        private String dbUrl="jdbc:mysql://localhost:3306/db_student";
        private String user="root";
        private String password="123456";
        private String jdbcName="com.mysql.jdbc.Driver";
        public Connection getCon() throws Exception{
                Class.forName(jdbcName);
                Connection con=DriverManager.getConnection(dbUrl, user, password);
                return con;
        }
        public void close(Connection con)throws Exception{
                if(con!=null){
                        con.close();
                }
        }
        public static void main(String[] args){
                Connection con=null;
                try {
                        con = new DbUtil().getCon();
                        System.out.println(con);
                } catch (Exception e) {
                        e.printStackTrace();
                }finally{
                        if(con!=null){
                                try {
                                        con.close();
                                } catch (SQLException e) {
                                        e.printStackTrace();
                                }
                        }
                }
        }
}
package com.student.model; 
public class Student {
        private int id;
        private String studentnumber;
        private String name;
        private String birthday;
        private String nativeplace;
        private int classid;
        private String studentremark;
        public Student() {
                super();
        }
        public Student(String studentnumber, String name, String birthday,
                        String nativeplace, int classid, String studentremark) {
                super();
                this.studentnumber = studentnumber;
                this.name = name;
                this.birthday = birthday;
                this.nativeplace = nativeplace;
                this.classid = classid;
                this.studentremark = studentremark;
        } 
        public Student(int id, String studentnumber, String name, String birthday,
                        String nativeplace, int classid, String studentremark) {
                super();
                this.id = id;
                this.studentnumber = studentnumber;
                this.name = name;
                this.birthday = birthday;
                this.nativeplace = nativeplace;
                this.classid = classid;
                this.studentremark = studentremark;
        } 
        public int getId() {
                return id;
        } 
        public void setId(int id) {
                this.id = id;
        } 
        public String getStudentnumber() {
                return studentnumber;
        }
        public void setStudentnumber(String studentnumber) {
                this.studentnumber = studentnumber;
        } 
        public String getName() {
                return name;
        } 
        public void setName(String name) {
                this.name = name;
        } 
        public String getBirthday() {
                return birthday;
        } 
        public void setBirthday(String birthday) {
                this.birthday = birthday;
        } 
        public String getNativeplace() {
                return nativeplace;
        } 
        public void setNativeplace(String nativeplace) {
                this.nativeplace = nativeplace;
        } 
        public int getClassid() {
                return classid;
        }
         public void setClassid(int classid) {
                this.classid = classid;
        } 
        public String getStudentremark() {
                return studentremark;
        } 
        public void setStudentremark(String studentremark) {
                this.studentremark = studentremark;
        } 
}

 

提交申請后,顧問老師會電話與您溝通安排學習

免費課程推薦 >>
技術文檔推薦 >>
主站蜘蛛池模板: 亚拍精品一区二区三区 | 免费香蕉一区二区在线观看 | 亚洲综合色婷婷 | 欧美一区二区三区免费视频 | 久久这里只有精品免费视频 | 久久视频一区 | 亚洲精品国产成人99久久 | 亚洲区精品 | 久久精品中文字幕免费 | 精品免费在线视频 | a级爱爱视频 | 四虎在线观看免费视频 | 精品在线免费观看视频 | 狠狠操天天爱 | 女人18一级毛片免费观看 | xxx中国毛茸茸| 青青操夜夜操 | 欧美精品亚洲精品日韩专 | 中国欧美日韩一区二区三区 | 日韩 欧美 自拍 在线 视频 | 欧美国产在线观看 | 呦女亚洲一区精品 | 久久久久久国产精品免费免费 | 色综合欧美 | 福利在线网站 | 免费一级毛片在播放视频 | 兽皇在线观看 | 久久精品亚洲精品一区 | 精品99在线观看 | 成人夜色香网站在线观看 | 欧美日韩国产在线人成 | 亚洲最大色网站 | 青青青国产深夜福利视频 | 一区二区在线 | 久久久久亚洲 | 亚洲爱婷婷色婷婷五月 | 在线播放色 | 一日本道加勒比高清一二三 | 夜夜网站 | 国产成人99精品免费视频麻豆 | 国产激情一区二区三区在线观看 |