• 大小: 1.68MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-09
  • 语言: Java
  • 标签: JAVA  

资源简介

非常乐意分享, 祝大家早日学会JAVA!

资源截图

代码片段和文件信息

package lgcsgwxt;

import java.sql.*;

public class DBAccess {

    private static final String DRIVER =
            “com.microsoft.jdbc.sqlserver.SQLServerDriver“;
    private static final String URL =
            “jdbc:microsoft:sqlserver://localhost:1433;databaseName=SuperMarket;“;
    private static final String USER = “sa“;
    private static final String PASSWORD = “sa“;
    public static Connection getConnection() { //连接数据库
        Connection conn = null;
        try {
            Class.forName(DRIVER);
            conn = DriverManager.getConnection(URL USER PASSWORD);

        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return conn;
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-19 11:32  javashop\
     目录           0  2008-08-16 23:25  javashop\codefans.net\
     目录           0  2008-08-16 23:26  javashop\codefans.net\Java超市购物进销存系统\
     目录           0  2008-08-16 23:25  javashop\codefans.net\Java超市购物进销存系统\database\
     文件        1447  2005-02-21 09:04  javashop\codefans.net\Java超市购物进销存系统\database\supermarket.txt
     文件     1441792  2007-09-26 19:04  javashop\codefans.net\Java超市购物进销存系统\database\SuperMarket_Data.MDF
     文件     1048576  2007-09-26 19:04  javashop\codefans.net\Java超市购物进销存系统\database\SuperMarket_Log.LDF
     文件        1705  2007-09-19 11:41  javashop\codefans.net\Java超市购物进销存系统\database\新建 文本文档.txt
     目录           0  2008-08-16 23:25  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\
     目录           0  2008-08-16 23:25  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\bak\
     目录           0  2008-08-16 23:25  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\
     目录           0  2008-08-16 23:25  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\
     文件         423  2007-09-17 20:22  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\about.png
     文件         183  2007-09-17 20:22  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\closeFile.png
     文件        1016  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\DBAccess.class
     目录           0  2008-08-16 23:25  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\
     文件        9020  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\AddMerchandise.class
     文件         745  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\AddMerchandise_jButton1_actionAdapter.class
     文件         745  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\AddMerchandise_jButton2_actionAdapter.class
     文件         745  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\AddMerchandise_jButton3_actionAdapter.class
     文件         745  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\AddMerchandise_jButton4_actionAdapter.class
     文件        4167  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\Admin.class
     文件        3977  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\Adminstrator.class
     文件         733  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\Adminstrator_jButton1_actionAdapter.class
     文件         733  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\Adminstrator_jButton2_actionAdapter.class
     文件         691  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\Admin_jButton1_actionAdapter.class
     文件         691  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\Admin_jButton2_actionAdapter.class
     文件         900  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\Dialog_enroll$Dialog_enroll_jButton1_actionAdapter.class
     文件         900  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\Dialog_enroll$Dialog_enroll_jButton2_actionAdapter.class
     文件         900  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\Dialog_enroll$Dialog_enroll_jButton4_actionAdapter.class
     文件         781  2007-10-01 19:40  javashop\codefans.net\Java超市购物进销存系统\Lgcsgwxt\classes\lgcsgwxt\dialog\Dialog_enroll$RemindTask.class
............此处省略148个文件信息

评论

共有 条评论