码迷,mamicode.com
首页 >  
搜索关键字:could not find driver    ( 34312个结果
JDBC
一、JDBC六个步骤 1.加载驱动 Class.forName(driver_class); 2.创建数据库连接 DriverManager.getConnection(url,user,password); 3.创建PreparedStatement PreparedStatement ps=co ...
分类:数据库   时间:2020-11-16 13:44:24    阅读次数:52
JDBC
1.加载驱动 Class.forName(driver_class); 2.创建数据库连接 DriverManager.getConnection(url,user,password); 3.创建PreparedStatement PreparedStatement ps=connection.pr ...
分类:数据库   时间:2020-11-16 13:44:12    阅读次数:24
用find和xargs处理文件名中带空格的文件
我们经常用find和xargs来进行批处理文件。 常见的用法如:find ./ -name ".jpg" | xargs cp -t ./JPEGImages ,实现将当前目前下所有以.jpg结尾的文件复制到当前目录下的JPEGImages目录中。 但是当find找到一个文件名中含有空格的文件时,便 ...
分类:其他好文   时间:2020-11-16 13:29:44    阅读次数:8
遍历数组的方法
forEach()、map()、filter()、find()、reduce()、some()、every() 它们都自带遍历(只要调用这个方法就会自动循环数组中的每一项) 它们都不会改变原数组,调用方法后产生的结果在返回值中 它们的参数都是一个函数,这个函数都有三个参数(只有第一个“项”是必填的) ...
分类:编程语言   时间:2020-11-16 13:15:51    阅读次数:10
sed命令
1、查找/etc目录下大于1M且类型为普通文件的所有文件find/etc-typef-size+1M2、打包/etc/目录下面所有conf结尾的文件,压缩包名称为当天的时间,并拷贝到/usr/local/src目录备份。3、利用sed取出ifconfig命令中本机的IPv4地址ifconfigens33|sed-n‘2p‘|sed-r‘s/(^[^0-9]+)([0-9.]
分类:其他好文   时间:2020-11-16 13:03:17    阅读次数:4
Linux正则表达式实践
1、查找/etc/目录下大于1MB且类型为普通文件的所有文件find/etc-size+1M-typef2、打包/etc/目录下所有以conf结尾的文件,压缩包名称为当天的时间,拷贝到/usr/local/src目录备份find/etc-name"*conf"|xargstar-czf`date+"%F"`.tar.gz-C/usr/local/src3、利用sed取出ifconfig命令中本机的
分类:系统相关   时间:2020-11-16 12:59:55    阅读次数:17
leetcode 1283. Find the Smallest Divisor Given a Threshold
Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the result ...
分类:其他好文   时间:2020-11-13 13:21:44    阅读次数:33
golang mongodb 驱动二次封装
mongodb 官方的go驱动包 go.mongodb.org/mongo-driver 使用起来比较繁琐,最近对其进行了二次封装 github地址:https://github.com/w3liu/go-common/tree/master/store/mongo测试用例如下: func Test ...
分类:数据库   时间:2020-11-13 13:16:09    阅读次数:40
【转】 springboot整合redis-sentinel支持Cache注解
【转】 springboot整合redis-sentinel支持Cache注解 一、前提 已经存在一个redis-sentinel集群,两个哨兵分别如下: /home/redis-sentinel-cluster/sentinel-1.conf port 26379 dir "/data" sent ...
分类:编程语言   时间:2020-11-12 14:17:04    阅读次数:12
原创-mongodb增删改查
查找admin集合下前10条数据: db.admin.find().limit(10); 插入数据 > post={table: "activityzones", ... fields: [ ... { ... name: "_id", ... type: "ObjectId", ... hidde ...
分类:数据库   时间:2020-11-12 13:54:07    阅读次数:13
34312条   上一页 1 ... 42 43 44 45 46 ... 3432 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!