会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Bonnie_ξ
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
17
18
19
20
21
22
23
24
25
···
38
下一页
2021年7月2日
grep 命令
摘要: grep、awk、sed 这三个指令,作为 Linux 系统中文本处理的三大法宝,我最喜欢、最常用的就是 grep 指令,没有之一! 它的基本用法是: grep [OPTIONS] PATTERN [FILE...] grep [OPTIONS] [-e PATTERN]... [-f FILE].
阅读全文
posted @ 2021-07-02 09:32 Bonnie_ξ
阅读(61)
评论(0)
推荐(0)
2021年7月1日
SpringBoot 实现登录拦截器
摘要: 1、SpringBoot 实现登录拦截的原理 SpringBoot 通过实现HandlerInterceptor接口实现拦截器,通过实现WebMvcConfigurer接口实现一个配置类,在配置类中注入拦截器,最后再通过 @Configuration 注解注入配置. 1.1、实现HandlerInt
阅读全文
posted @ 2021-07-01 17:21 Bonnie_ξ
阅读(118)
评论(0)
推荐(0)
2021年6月30日
JdbcTemplate 批量
摘要: JDBC 批量处理 public void insertBatch(final List<Customer> customers){ String sql = "INSERT INTO CUSTOMER (CUST_ID, NAME, AGE) VALUES (?, ?, ?)"; getJdbcT
阅读全文
posted @ 2021-06-30 13:48 Bonnie_ξ
阅读(121)
评论(0)
推荐(0)
Java 必会的工具库
摘要: 1. Java自带工具方法 1.1 List集合拼接成以逗号分隔的字符串 // 如何把list集合拼接成以逗号分隔的字符串 a,b,c List<String> list = Arrays.asList("a", "b", "c"); // 第一种方法,可以用stream流 String join
阅读全文
posted @ 2021-06-30 11:01 Bonnie_ξ
阅读(69)
评论(0)
推荐(0)
2021年6月29日
shell 遍历目录下的文件
摘要: #!bin/sh for file in ./*; do if test -f $file; then echo $file 是文件 else echo $file 是目录 fi done #!bin/sh for file in ./*; do if test -f $file; then ech
阅读全文
posted @ 2021-06-29 10:18 Bonnie_ξ
阅读(165)
评论(0)
推荐(0)
2021年6月28日
MySQL 大批量插入,如何过滤掉重复数据?
摘要: CREATE TABLE `student` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(20) DEFAULT NULL, `age` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGIN
阅读全文
posted @ 2021-06-28 09:52 Bonnie_ξ
阅读(389)
评论(0)
推荐(0)
定时任务
摘要: scheduleAtFixedRate 每间隔一段时间执行,分为两种情况: /** * 任务执行时间(8s)小于间隔时间(10s) */ public class ScheduleTest { static ScheduledExecutorService scheduler = Executors
阅读全文
posted @ 2021-06-28 09:27 Bonnie_ξ
阅读(75)
评论(0)
推荐(0)
2021年6月24日
hbase shell
摘要: hbase shell 命令行的操作 查询数据(一行) get 'zx_cloud_company_base_info', '340102000448661' 删除数据(一行) deleteall 'zx_cloud_company_base_info', '340102000448661' 清空数
阅读全文
posted @ 2021-06-24 16:17 Bonnie_ξ
阅读(81)
评论(0)
推荐(0)
2021年6月21日
Java 造假数据
摘要: <dependency> <groupId>com.github.javafaker</groupId> <artifactId>javafaker</artifactId> <version>1.0.2</version> </dependency> 先定义一个 Java Bean /** * U
阅读全文
posted @ 2021-06-21 14:28 Bonnie_ξ
阅读(245)
评论(0)
推荐(0)
Python造假数据,用这个库
摘要: Faker扩展库 https://mp.weixin.qq.com/s/Y7kxqxme6M8VPbanWUfXnQ 这时,Python扩展库Faker来了,带着它那各种各样的数据来了。 先安装faker pip install Faker 创建faker对象 from faker import F
阅读全文
posted @ 2021-06-21 14:06 Bonnie_ξ
阅读(275)
评论(0)
推荐(0)
上一页
1
···
17
18
19
20
21
22
23
24
25
···
38
下一页
公告