- 博客(1)
- 收藏
- 关注
原创 JDBC连接数据库
JDBC:连接Mysql数据库步骤项目中导入Mysql驱动包。Mysql8.0以上:数据库URL:jdbc:mysql://localhost:3306/数据库名?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC创建Connection和Statement对象Connection cnn = null; Statement stmt = null;注册JDBC驱动:Class.forName(“com
2022-02-28 22:01:02
578
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人