- 博客(2)
- 收藏
- 关注
原创 mysql 批量插入优化
首先在资源文件jdbc.properties文件中url后添加: ?rewriteBatchedStatements=true 功能为允许MySQL批量插入测试方法:@Testpublic void testInsert3() throws SQLException { ConnectionClass connectionClass = new Connection...
2019-09-19 20:02:23
190
原创 通过Driver实现链接MySQL数据库
通过返回Connection对象实现连接数据库定义相关变量:userpasswordclassDriverpropertiesinputstreamconnectiondriverurl通过反射获取输入流读取properties文件inputStream=getClass().getClassLoader().getResourceAsStream(“...
2019-09-10 22:52:04
365
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人