当前位置:网站首页>Jsp+servlet+mysql案例
Jsp+servlet+mysql案例
2022-07-17 08:57:00 【逍遥游@】
项目名称:个人网站系统
实现技术:jsp+servlet+java+html+css+js;
开发工具:eclipse开发环境:jdk1.8,Tomcat7.0以上。
数据库: mysql5.7
项目描述:本项目是对个人信息描述的一个网站系统,具有网站(前台)和后台管理。具备增删改查的操作,个人信息、留言管理、用户管理三个模块。数据库连接为msyqq
作者的话:
1.jdbcl连接数据库
public class DBUtil {
static String CLASSFORNAME="com.mysql.jdbc.Driver";
static String SERVANDDB="jdbc:mysql://localhost:3306/person?useUnicode=true&characterEncoding=utf-8";
static String USER="root";
static String PWD="123456";
static{
// 加载数据库驱动
try {
Class.forName(CLASSFORNAME);
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
public static Connection getConnection() {
Connection conn = null;
try {
// 获取数据库连接
conn = DriverManager
.getConnection(SERVANDDB,
USER, PWD);
}catch (SQLException e) {
e.printStackTrace();
}
return conn;
}
2.登录界面

主界面
留言模块
需要源码及资料的请关注我的微信公众号。

边栏推荐
猜你喜欢

Graphite thickness measurement

2022广东省安全员A证第三批(主要负责人)练习题及模拟考试

Basic steps for creating a static library

Magic Usage of mongodb $symbol +mongo data type

gradle入门笔记

ES6 learning function (strict mode, higher-order function, closure)

【手写数字识别】基于Lenet网络实现手写数字识别附matlab代码

Shell notes

分布式事务-最大努力通知方案

终结重复开发,两三下搞定登录系统个性化
随机推荐
Cocos shader basics 7
Expanding hard disk in VMWare
数据湖(二十):Flink兼容Iceberg目前不足和Iceberg与Hudi对比
Redis
动态内存管理
QR decomposition for matrix inversion -- C engineering implementation
二、品达通用权限系统__项目搭建
LeetCode 0115.不同的子序列
2022年夏令营难忘的一天
项目代码训练教程
Difference and connection between structure and Consortium
Sorting out of neural network basics exercises in the second week of in-depth study
cut,sort,uniq,xargs
解决接口跨域问题和node操作MySQL
MySQL索引(一)
【CTF】pwn2_ sctf_ two thousand and sixteen
2022T电梯修理考试题库及答案
ROS common toolkit commands
TP5 wechat withdrawal merchants transfer to change (copying is available)
49. MySQL usage

