资源简介
mysql+servlet+javabean的JavaWeb简易网页留言板,数据库用的Mysql,服务器用tomact,内涵代码和简易文档图片,下载个navicat即可运行,本内容只适用于在校大学生等初学者了解和学习MVC模式,谢谢

代码片段和文件信息
package come.javabean;
import java.sql.*;
public class jdbcBean {
Connection con = null;
public static final String dbdriver=“com.mysql.cj.jdbc.Driver“;
public static final String url=“jdbc:mysql://localhost:3306/test?useSSL=false&serverTimezone=UTC“;
public static final String username=“root“;
public static final String password=“WUHAILONG963“;
public jdbcBean()
{
try{
Class.forName(dbdriver);
this.con = DriverManager.getConnection(urlusernamepassword);
}catch(Exception e){ e.printStackTrace();}
}
public Connection getCon(){
if(this.con == null){
try{
Class.forName(dbdriver);
this.con = DriverManager.getConnection(urlusernamepassword);
}catch(SQLException e){e.printStackTrace();} catch (ClassNotFoundException e) { e.printStackTrace();
}
}
return this.con;
}
public void closeSql()
{
try
{ if(this.con!=null)
{
this.con.close();
this.con=null;
}
}catch(Exception e){ e.printStackTrace();}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-11-14 14:34 WebTest\
文件 842 2018-06-18 12:44 WebTest\.classpath
文件 907 2018-06-18 12:44 WebTest\.project
目录 0 2018-06-20 10:50 WebTest\.settings\
文件 567 2018-06-18 12:44 WebTest\.settings\.jsdtscope
文件 364 2018-06-18 12:44 WebTest\.settings\org.eclipse.jdt.core.prefs
文件 473 2018-06-18 12:44 WebTest\.settings\org.eclipse.wst.common.component
文件 345 2018-06-18 12:44 WebTest\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2018-06-18 12:44 WebTest\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2018-06-18 12:44 WebTest\.settings\org.eclipse.wst.jsdt.ui.superType.name
目录 0 2018-11-14 14:33 WebTest\WebContent\
目录 0 2018-06-20 10:50 WebTest\WebContent\me
文件 39 2018-06-18 12:44 WebTest\WebContent\me
目录 0 2018-06-20 10:50 WebTest\WebContent\WEB-INF\
目录 0 2018-06-20 10:50 WebTest\WebContent\WEB-INF\lib\
文件 2036609 2018-06-18 12:47 WebTest\WebContent\WEB-INF\lib\mysql-connector-java-8.0.11.jar
文件 1151 2018-06-18 19:30 WebTest\WebContent\WEB-INF\web.xm
文件 676 2018-06-18 12:47 WebTest\WebContent\a.html
文件 739 2018-06-18 12:47 WebTest\WebContent\b.html
文件 419 2018-06-18 12:47 WebTest\WebContent\exit.jsp
文件 229 2018-06-18 12:47 WebTest\WebContent\false.html
文件 1168 2018-06-18 21:54 WebTest\WebContent\main.jsp
文件 949 2018-06-18 19:30 WebTest\WebContent\success.jsp
目录 0 2018-06-20 10:50 WebTest\build\
目录 0 2018-06-20 10:50 WebTest\build\classes\
目录 0 2018-06-20 10:50 WebTest\build\classes\come\
目录 0 2018-06-20 10:50 WebTest\build\classes\come\javabean\
文件 1080 2018-06-18 21:27 WebTest\build\classes\come\javabean\Note.class
文件 866 2018-06-18 12:47 WebTest\build\classes\come\javabean\User.class
文件 5384 2018-06-18 21:28 WebTest\build\classes\come\javabean\UserinfoBean.class
文件 1529 2018-06-18 12:47 WebTest\build\classes\come\javabean\jdbcBean.class
............此处省略16个文件信息
- 上一篇:登陆注册JSP+MySQL页面
- 下一篇:java简单查询天气
相关资源
- 微博系统(Java源码,servlet+jsp),适
- java串口通信全套完整代码-导入eclip
- jsonarray所必需的6个jar包.rar
- 三角网构TIN生成算法,Java语言实现
- java代码编写将excel数据导入到mysql数据
- Java写的cmm词法分析器源代码及javacc学
- JAVA JSP公司财务管理系统 源代码 论文
- JSP+MYSQL旅行社管理信息系统
- 推荐算法的JAVA实现
- 基于Java的酒店管理系统源码(毕业设
- java-图片识别 图片比较
- android毕业设计
- java23种设计模式+23个实例demo
- java Socket发送/接受报文
- JAVA828436
- java界面美化 提供多套皮肤直接使用
- 在线聊天系统(java代码)
- 基于Java的图书管理系统807185
- java中实现将页面数据导入Excel中
- java 企业销售管理系统
- java做的聊天系统(包括正规课程设计
- JSP,SQL,MVC的选课系统
- Java编写的qq聊天室
- 商店商品管理系统 JAVA写的 有界面
- JAVA开发聊天室程序
- 在linux系统下用java执行系统命令实例
- java期末考试试题两套(答案) 选择(
- JAVA3D编程示例(建模、交互)
- Java 文件加密传输
- java做的房产管理系统
评论
共有 条评论