资源简介

ssh项目,jsp源码,java招聘网站,java项目,java源码 小型招聘网站的建设,简单的功能实现,增删查改,适合作为简单的课程设计和java毕业设计参考学习之用

资源截图

代码片段和文件信息

package com.connection;

import java.sql.*;

public class ConnectionManager {
// private static String driver = “net.sourceforge.jtds.jdbc.Driver“;
// private static String url = “jdbc:jtds:sqlserver://localhost:1433;DatabaseName=ebook“ ;
// private static String userName = “sa“;
// private static String pwd = “123“;
// private static Connection con;

private String driver ;
private String url;
private String userName ;
private String pwd ;
private Connection con;
//初始化私有属性,加载驱动
public ConnectionManager() {
driver = “net.sourceforge.jtds.jdbc.Driver“;
url = “jdbc:jtds:sqlserver://localhost:1433;DatabaseName=Recruitment“;
userName = “sa“;
pwd = “123“;
try {
Class.forName(driver);
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
public Connection getConnection(){
try {
con = DriverManager.getConnection(urluserNamepwd);
} catch (SQLException e) {
e.printStackTrace();
}
return con;
}
public void close(){
try {
con.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-05-09 17:18  Recruitment\
     文件         732  2013-10-02 16:38  Recruitment\.classpath
     目录           0  2013-01-08 10:37  Recruitment\.myeclipse\
     文件         306  2013-10-02 16:38  Recruitment\.mymetadata
     文件        1229  2013-01-08 10:36  Recruitment\.project
     目录           0  2013-01-08 10:37  Recruitment\.settings\
     目录           0  2014-05-09 17:18  Recruitment\src\
     目录           0  2013-10-02 16:37  Recruitment\src\com\
     目录           0  2013-10-02 16:37  Recruitment\src\com\connection\
     文件        1131  2013-01-08 10:36  Recruitment\src\com\connection\ConnectionManager.java
     目录           0  2013-10-02 16:37  Recruitment\src\com\model\
     文件        1400  2013-01-08 10:36  Recruitment\src\com\model\CUser.java
     文件        1632  2013-01-08 10:36  Recruitment\src\com\model\Employment.java
     文件        1775  2013-01-08 10:36  Recruitment\src\com\model\Resume.java
     文件        1587  2013-01-08 10:36  Recruitment\src\com\model\User.java
     目录           0  2013-10-02 16:37  Recruitment\src\com\opr\
     文件        3838  2013-01-08 10:36  Recruitment\src\com\opr\CUserOpr.java
     文件        2154  2013-01-08 10:36  Recruitment\src\com\opr\EmploymentOpr.java
     文件        3638  2013-01-08 10:36  Recruitment\src\com\opr\ResumeOpr.java
     文件        3809  2013-01-08 10:36  Recruitment\src\com\opr\UserOpr.java
     目录           0  2013-10-02 16:49  Recruitment\src\com\servlet\
     文件        2530  2013-01-08 10:36  Recruitment\src\com\servlet\CLoginServlet.java
     文件        2169  2013-01-08 10:36  Recruitment\src\com\servlet\EmploymentServlet.java
     文件        1633  2013-01-08 10:36  Recruitment\src\com\servlet\EncodingFilter.java
     文件        2514  2013-01-08 10:36  Recruitment\src\com\servlet\LoginServlet.java
     文件        1548  2013-01-08 10:36  Recruitment\src\com\servlet\LogoutServlet.java
     文件        2373  2013-01-08 10:36  Recruitment\src\com\servlet\RegisterServlet.java
     文件        2545  2013-01-08 10:36  Recruitment\src\com\servlet\ResumeServlet.java
     文件        1775  2013-01-08 10:36  Recruitment\src\com\servlet\VerifyCodeServlet.java
     目录           0  2014-05-09 17:19  Recruitment\WebRoot\
     目录           0  2013-10-02 16:37  Recruitment\WebRoot\admin\
............此处省略86个文件信息

评论

共有 条评论