当前位置:网站首页>Jsp+servlet+mysql case
Jsp+servlet+mysql case
2022-07-19 08:58:00 【Free [email protected]】
Project name : Personal website system
implementation technique :jsp+servlet+java+html+css+js;
development tool :eclipse development environment :jdk1.8,Tomcat7.0 above .
database : mysql5.7
Project description : This project is a website system for personal information description , Have website ( The front desk ) And background management . Have the operation of adding, deleting, modifying and querying , Personal information 、 message management 、 User management has three modules . The database connection is msyqq
Author's words :
1.jdbcl Connect to database
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{
// Load database driver
try {
Class.forName(CLASSFORNAME);
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
public static Connection getConnection() {
Connection conn = null;
try {
// Get database connection
conn = DriverManager
.getConnection(SERVANDDB,
USER, PWD);
}catch (SQLException e) {
e.printStackTrace();
}
return conn;
}
2. Login screen

main interface
Message module
If you need source code and information, please follow my wechat official account .

版权声明
本文为[Free [email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/200/202207170857335141.html
边栏推荐
猜你喜欢
随机推荐
MySQL索引(二)
CPU load of webgl - webgl comparison
BCG 使用之CBCGPEdit控件
mongodb $符号的神奇用法+mongo数据类型
分库分表
Programming in the novel [serial 13] the moon bends in the yuan universe
2022广东省安全员A证第三批(主要负责人)练习题及模拟考试
Programming in the novel [serial 15] the moon bends in the yuan universe
Programming in the novel [serial 12] the moon bends in the yuan universe
项目代码训练教程
[handwritten numeral recognition] handwritten numeral recognition based on lenet network with matlab code
第七天训练
【手写数字识别】基于Lenet网络实现手写数字识别附matlab代码
MySQL索引(一)
也挺难的,不光我自己写的很累
JSON under mysql8
Authing 实践|制造业身份认证统一管理解决方案
Project code training tutorial
(鬼火引擎)中多设备的支持
Use of datasets in trochvision











