资源简介

通过mysql数据库验证用户名和密码,进行 android登录验证

资源截图

代码片段和文件信息

package com.booking.action;


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


public class DBConnectorbooking {
public static Connection getConnection(String driverClassNameString dbURLString usernameString password)
throws ClassNotFoundExceptionSQLException
{
Connection conn=null;
Class.forName(driverClassName);
   conn = DriverManager.getConnection(dbURL username password);
return conn;

}
public static Connection getMySQLConnection(String driverClassNameString serverHostString serverPortString dbnameString usernameString password)
throws ClassNotFoundException SQLException
{
if(driverClassName==null){
driverClassName=“com.mysql.jdbc.Driver“;
}
if (serverHost == null) {
    se

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-03-29 16:33  LoginDemo\
     目录           0  2015-03-27 11:00  LoginDemo\LoginDemo\
     目录           0  2015-03-27 11:00  LoginDemo\LoginDemo\BookingSystem\
     文件         653  2015-03-29 14:02  LoginDemo\LoginDemo\BookingSystem\.classpath
     目录           0  2015-03-29 16:33  LoginDemo\LoginDemo\BookingSystem\.myeclipse\
     文件         312  2015-03-25 15:46  LoginDemo\LoginDemo\BookingSystem\.mymetadata
     文件        1756  2015-03-25 15:59  LoginDemo\LoginDemo\BookingSystem\.project
     目录           0  2015-03-27 11:00  LoginDemo\LoginDemo\BookingSystem\.settings\
     文件         500  2015-03-25 15:46  LoginDemo\LoginDemo\BookingSystem\.settings\.jsdtscope
     文件         364  2015-03-25 15:46  LoginDemo\LoginDemo\BookingSystem\.settings\org.eclipse.jdt.core.prefs
     文件         477  2015-03-25 15:46  LoginDemo\LoginDemo\BookingSystem\.settings\org.eclipse.wst.common.component
     文件         252  2015-03-25 15:46  LoginDemo\LoginDemo\BookingSystem\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2015-03-25 15:46  LoginDemo\LoginDemo\BookingSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2015-03-25 15:46  LoginDemo\LoginDemo\BookingSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2015-03-27 11:00  LoginDemo\LoginDemo\BookingSystem\WebRoot\
     目录           0  2015-03-27 11:00  LoginDemo\LoginDemo\BookingSystem\WebRoot\meta-INF\
     文件          36  2015-03-25 15:46  LoginDemo\LoginDemo\BookingSystem\WebRoot\meta-INF\MANIFEST.MF
     目录           0  2015-03-27 11:00  LoginDemo\LoginDemo\BookingSystem\WebRoot\WEB-INF\
     目录           0  2015-03-29 14:03  LoginDemo\LoginDemo\BookingSystem\WebRoot\WEB-INF\classes\
     目录           0  2015-03-29 14:03  LoginDemo\LoginDemo\BookingSystem\WebRoot\WEB-INF\classes\com\
     目录           0  2015-03-29 14:03  LoginDemo\LoginDemo\BookingSystem\WebRoot\WEB-INF\classes\com\booking\
     目录           0  2015-03-29 14:03  LoginDemo\LoginDemo\BookingSystem\WebRoot\WEB-INF\classes\com\booking\action\
     文件        2315  2015-03-29 14:03  LoginDemo\LoginDemo\BookingSystem\WebRoot\WEB-INF\classes\com\booking\action\DBConnectorbooking.class
     文件        3101  2015-03-29 14:03  LoginDemo\LoginDemo\BookingSystem\WebRoot\WEB-INF\classes\com\booking\action\JsonLoginServlet.class
     目录           0  2015-03-29 16:33  LoginDemo\LoginDemo\BookingSystem\WebRoot\WEB-INF\lib\
     文件         664  2015-03-29 11:18  LoginDemo\LoginDemo\BookingSystem\WebRoot\WEB-INF\web.xml
     文件         834  2015-03-25 15:46  LoginDemo\LoginDemo\BookingSystem\WebRoot\index.jsp
     目录           0  2015-03-27 11:00  LoginDemo\LoginDemo\BookingSystem\src\
     目录           0  2015-03-27 11:00  LoginDemo\LoginDemo\BookingSystem\src\com\
     目录           0  2015-03-27 11:00  LoginDemo\LoginDemo\BookingSystem\src\com\booking\
     目录           0  2015-03-27 11:00  LoginDemo\LoginDemo\BookingSystem\src\com\booking\action\
............此处省略153个文件信息

评论

共有 条评论