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

资源简介

超市收银系统,实现基础功能。还带有数据库

资源截图

代码片段和文件信息

package bean;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Conndb {
private Connection conn = null;
private String driver = “com.mysql.jdbc.Driver“;
private String url = “jdbc:mysql://localhost/supermarketSys“;
String user =“root“;
String password = “root“;

public Conndb() {
try {
Class.forName(driver);
conn = DriverManager.getConnection(url user password);
} catch (ClassNotFoundException e) {

e.printStackTrace();
} catch (SQLException e) {

e.printStackTrace();
}
}
public Connection getconnection(){
return this.conn;
}
public void closed(){
try {
this.conn.close();
} catch (SQLException e) {

e.printStackTrace();
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-06-22 11:33  bigWork\
     文件         467  2010-05-28 18:53  bigWork\.classpath
     文件        1068  2016-06-21 09:31  bigWork\.project
     目录           0  2016-06-22 11:33  bigWork\.settings\
     文件         330  2010-05-28 18:52  bigWork\.settings\org.eclipse.jdt.core.prefs
     文件         293  2010-05-28 18:53  bigWork\.settings\org.eclipse.jst.common.project.facet.core.prefs
     文件         402  2010-05-28 18:53  bigWork\.settings\org.eclipse.wst.common.component
     文件         273  2010-05-28 18:53  bigWork\.settings\org.eclipse.wst.common.project.facet.core.xml
     目录           0  2016-06-22 11:33  bigWork\meta-INF\
     文件          39  2010-05-28 18:53  bigWork\meta-INF\MANIFEST.MF
     目录           0  2016-06-22 11:33  bigWork\WEB-INF\
     目录           0  2016-06-22 11:33  bigWork\WEB-INF\classes\
     目录           0  2016-06-22 11:33  bigWork\WEB-INF\classes\bean\
     文件        2222  2010-06-14 17:28  bigWork\WEB-INF\classes\bean\ConnInd.class
     文件        1303  2010-06-14 12:56  bigWork\WEB-INF\classes\bean\Conndb.class
     文件        2542  2010-06-14 16:22  bigWork\WEB-INF\classes\bean\ReturnedInfo.class
     文件        2451  2010-06-14 15:57  bigWork\WEB-INF\classes\bean\SelectCashInfo.class
     文件        2695  2010-06-14 12:56  bigWork\WEB-INF\classes\bean\SelectCashierInfo.class
     文件        3460  2010-06-14 12:56  bigWork\WEB-INF\classes\bean\SelectGoodsInfo.class
     文件         283  2010-06-14 16:21  bigWork\WEB-INF\classes\bean\SelectIn_outInfo.class
     文件        2391  2010-06-14 15:57  bigWork\WEB-INF\classes\bean\SelectReturnedInfo.class
     文件        4490  2010-06-14 13:17  bigWork\WEB-INF\classes\bean\SelectTwoInfo.class
     文件        1952  2010-06-14 12:56  bigWork\WEB-INF\classes\bean\SelectUserInfo.class
     文件        1508  2010-06-14 12:56  bigWork\WEB-INF\classes\bean\SumNum.class
     文件        1258  2010-06-14 12:56  bigWork\WEB-INF\classes\bean\UpdateInfo.class
     目录           0  2016-06-27 09:12  bigWork\WEB-INF\lib\
     文件         634  2010-05-28 18:53  bigWork\WEB-INF\web.xml
     目录           0  2016-06-27 09:12  bigWork\WebContent\
     目录           0  2016-06-22 11:33  bigWork\addel\
     文件        1103  2010-06-10 18:07  bigWork\addel\addCashier.jsp
     文件        1581  2010-06-12 23:55  bigWork\addel\addGoods.jsp
............此处省略52个文件信息

评论

共有 条评论