资源简介

Java实现的单态登陆,里面有详细代码注释,也可参展这篇博客看看实现思路:http://blog.csdn.net/hongfeideng/article/details/7023865

资源截图

代码片段和文件信息

package com.hongfei.single.dao;

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

public class DB {
public static Connection getConnection(){
try {
Class.forName(“com.mysql.jdbc.Driver“);
return DriverManager.getConnection(“jdbc:mysql://localhost:3306/singleLogin““root““123456“);
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}
return null;
}
}

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

     文件        456  2011-11-29 10:55  JavaSingleLogin\.classpath

     文件        318  2011-11-29 10:54  JavaSingleLogin\.mymetadata

     文件       1421  2011-11-29 10:57  JavaSingleLogin\.project

     文件        500  2011-11-29 10:54  JavaSingleLogin\.settings\.jsdtscope

     文件        330  2011-11-29 10:54  JavaSingleLogin\.settings\org.eclipse.jdt.core.prefs

     文件         49  2011-11-29 10:54  JavaSingleLogin\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2011-11-29 10:54  JavaSingleLogin\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件        492  2011-11-29 11:03  JavaSingleLogin\src\com\hongfei\single\dao\DB.java

     文件       1189  2011-11-29 11:22  JavaSingleLogin\src\com\hongfei\single\dao\UserDao.java

     文件        892  2011-11-29 12:11  JavaSingleLogin\src\com\hongfei\single\entity\Users.java

     文件       1251  2011-11-29 15:54  JavaSingleLogin\src\com\hongfei\single\listen\SessionListen.java

     文件        360  2011-11-29 15:53  JavaSingleLogin\src\com\hongfei\single\map\SessionMap.java

     文件       2156  2011-11-29 15:55  JavaSingleLogin\src\com\hongfei\single\service\UserService.java

     文件       2141  2011-11-29 15:56  JavaSingleLogin\src\com\hongfei\single\servlet\CheckLogined.java

     文件       2825  2011-11-29 15:55  JavaSingleLogin\src\com\hongfei\single\servlet\Login.java

     文件       1048  2011-11-29 12:08  JavaSingleLogin\WebRoot\index.jsp

     文件         36  2011-11-29 10:54  JavaSingleLogin\WebRoot\meta-INF\MANIFEST.MF

     文件       1594  2011-11-29 15:48  JavaSingleLogin\WebRoot\result.jsp

     文件        285  2011-11-29 15:57  JavaSingleLogin\WebRoot\sql\singleLogin.sql

     文件        914  2011-11-29 11:03  JavaSingleLogin\WebRoot\WEB-INF\classes\com\hongfei\single\dao\DB.class

     文件       1646  2011-11-29 11:22  JavaSingleLogin\WebRoot\WEB-INF\classes\com\hongfei\single\dao\UserDao.class

     文件       1330  2011-11-29 12:11  JavaSingleLogin\WebRoot\WEB-INF\classes\com\hongfei\single\entity\Users.class

     文件       1650  2011-11-29 15:54  JavaSingleLogin\WebRoot\WEB-INF\classes\com\hongfei\single\listen\SessionListen.class

     文件        540  2011-11-29 15:53  JavaSingleLogin\WebRoot\WEB-INF\classes\com\hongfei\single\map\SessionMap.class

     文件       2168  2011-11-29 15:55  JavaSingleLogin\WebRoot\WEB-INF\classes\com\hongfei\single\service\UserService.class

     文件       1651  2011-11-29 15:56  JavaSingleLogin\WebRoot\WEB-INF\classes\com\hongfei\single\servlet\CheckLogined.class

     文件       2608  2011-11-29 15:55  JavaSingleLogin\WebRoot\WEB-INF\classes\com\hongfei\single\servlet\Login.class

     文件     767492  2010-06-23 17:38  JavaSingleLogin\WebRoot\WEB-INF\lib\mysql-connector-java-5.1.13-bin.jar

     文件       1046  2011-11-29 15:49  JavaSingleLogin\WebRoot\WEB-INF\web.xml

     目录          0  2011-11-29 15:59  JavaSingleLogin\WebRoot\WEB-INF\classes\com\hongfei\single\dao

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

评论

共有 条评论