• 大小: 1.83MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-20
  • 语言: Java
  • 标签: 源码  

资源简介

javaWeb 简单注册登录(含数据库连接), 前端 HTML + CSS + JS 服务器端: tomcat服务器、jsp、 Servlet、 上下文参数/属性、HTTP请求响应 数据库 MySQL搭建和开启、 jdbc连接数据库(增删查改)

资源截图

代码片段和文件信息

package com.jx.util;

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

public class DbUtil {

/**
 * 
 * @DbUtil������� jdbc ��һЩ������
 * dbUrl
 * dbusername
 * dbpassword
 * jdbcName
 * @author ����
 */

private String dbUrl=“jdbc:mysql://localhost:3306/mysql57“;
private String dbUserName=“root“;
private String dbPassword=“123456“;
private String jdbcName=“com.mysql.jdbc.Driver“;

/**
 * ��ȡ���ݿ�����
 * @return
 * @throws Exception
 */
public Connection getCon() throws Exception{
Class.forName(jdbcName);
Connection con=DriverManager.getConnection(dbUrldbUserNamedbPassword);
return con;
}

/**
 * �ر����ݿ�����
 * @param con
 * @throws Exception
 */
public void closeCon(Connection con) throws Exception{
if(con!=null){
con.close();
}
}

/**
 * ����һ��main���������Ƿ�����������ݿ�ɹ���
 * @param args
 * @author ����
 */

public static void main(String[] args) {
DbUtil dbUtil=new DbUtil();
try {
dbUtil.getCon();
System.out.println(“多少“);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1207  2018-12-05 16:25  test1\.classpath

     文件        905  2018-12-05 12:07  test1\.project

     文件        567  2018-12-05 12:07  test1\.settings\.jsdtscope

     文件         79  2018-12-05 13:22  test1\.settings\org.eclipse.core.resources.prefs

     文件        364  2018-12-05 12:07  test1\.settings\org.eclipse.jdt.core.prefs

     文件        467  2018-12-05 12:07  test1\.settings\org.eclipse.wst.common.component

     文件        345  2018-12-05 12:07  test1\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2018-12-05 12:07  test1\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2018-12-05 12:07  test1\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       1857  2018-12-05 12:11  test1\build\classes\com\jx\dao\UserDao.class

     文件       1404  2018-12-05 12:11  test1\build\classes\com\jx\dao\UserInfoDao.class

     文件       1061  2018-12-05 12:11  test1\build\classes\com\jx\model\User.class

     文件       2048  2018-12-05 12:11  test1\build\classes\com\jx\model\UserInfo.class

     文件       1638  2018-12-05 12:12  test1\build\classes\com\jx\util\DbUtil.class

     文件        621  2018-12-05 12:11  test1\build\classes\com\jx\util\StringUtil.class

     文件       2989  2018-12-05 13:22  test1\build\classes\com\jx\web\LoginServlet.class

     文件       2672  2018-12-05 13:36  test1\build\classes\com\jx\web\RegisterServlet.class

     文件       2834  2018-12-05 12:11  test1\build\classes\com\jx\web\resumeBasicInfoAddServlet.class

     文件       1337  2018-12-05 17:12  test1\src\com\jx\util\DbUtil.java

     文件        473  2018-12-05 12:11  test1\src\com\jx\util\StringUtil.java

     文件       4934  2018-12-05 17:12  test1\src\com\jx\web\LoginServlet.java

     文件       4009  2018-12-05 17:12  test1\src\com\jx\web\RegisterServlet.java

     文件        363  2018-12-05 13:26  test1\WebContent\dengluchenggong.jsp

     文件       2525  2018-12-05 17:07  test1\WebContent\index.jsp

     文件       1726  2018-12-05 20:00  test1\WebContent\register.jsp

     文件        138  2018-12-05 13:37  test1\WebContent\zhuce.html

     文件         39  2018-12-05 12:09  test1\WebContent\meta-INF\MANIFEST.MF

     文件       1318  2018-12-05 16:57  test1\WebContent\WEB-INF\web.xml

     文件    1004840  2018-12-05 12:09  test1\WebContent\WEB-INF\lib\mysql-connector-java-5.1.46-bin.jar

     文件    1004838  2018-12-05 12:09  test1\WebContent\WEB-INF\lib\mysql-connector-java-5.1.46.jar

............此处省略22个文件信息

评论

共有 条评论