- 博客(14)
- 收藏
- 关注
原创 Centos同步系统时间为上海时间
yum -y install utp ntpdate && ntpdate cn.pool.ntp.org && hwclock --systohc && timedatectl set-timezone Asia/Shanghai
2020-12-04 14:36:56
504
1
原创 Docker批量保存、导入镜像
查询所有镜像,带过滤条件 docker images | grep -vE 'REPOSITORY | redis' | awk 'BEGIN{OFS=":";ORS=" "}{print $1,$2}' 根据执行过滤条件后的镜像,进行保存到 tar 包 docker save $(docker images | grep -vE 'REPOSITORY | redis' | awk 'BEGIN{OFS=":";ORS=" "}{print $1,$2}') -o export.tar 导入镜像 do
2020-11-16 10:08:31
1698
原创 获取json中的所有key和value
记录CSDN游客提供方案 let obj = { name:"张三", sex:"男", age:20, height:150 } for ( let [key,val] of Object.entries(obj)){ console.log(key,val) }
2020-10-13 20:14:07
990
原创 IDEA Error:java: Compilation failed: internal java compiler error
File > Setting > Build,Execution,Deployment > Compiler > Java Compiler 设置相应Module的 target bytecode version 和 Jdk相同的版本。
2020-07-21 16:13:05
140
原创 PostgreSQL @DeleteProvider 批量删除
批量删除 PostgreSQL @DeleteProvide DELETE FROM table USING ( VALUES ( 'a4862df5d1f94d5db0ddd369dbf02fdd' ), ( '66e82373db3844808478c98de7f5cde4' ), ( 'fd52ee67c3f0494595340d8fb68016be' ) ) AS temp1 ( c_bh ) WHERE table.c_bh = temp1.c_bh;
2020-07-20 15:10:36
657
原创 PostgreSQL @UpdateProvider 批量更新
批量更新 PostgreSQL @UpdateProvide UPDATE table SET name = temp1.name FROM ( VALUES ( 'a4862df5d1f94d5db0ddd369dbf02fdd', 'new1' ), ( '66e82373db3844808478c98de7f5cde4', 'new2' ), ( 'fd52ee67c3f0494595340d8fb68016be', 'new6' ) ) AS temp1 ( c_bh, name ) W
2020-07-20 15:06:40
767
1
原创 Centos 重启关机
重启: 1、reboot 普通重启 2、shutdown -r now 立刻重启(root用户使用) 3、shutdown -r 10 过10分钟自动重启(root用户使用) 4、shutdown -r 20:35 在时间为20:35时候重启(root用户使用) 如果是通过shutdown命令设置重启的话,可以用shutdown -c命令取消重启 关机: 1、halt 立刻关机 2、poweroff 立刻关机 3、shutdown -h now 立刻关机(root用户使用) 4、shutdown -h
2020-05-16 18:42:23
172
原创 Centos 修改静态IP地址
/etc/sysconfig/network-scripts 路径下找到对应IP文件 每台机器的可能不同 TYPE=“Ethernet” PROXY_METHOD=“none” BROWSER_ONLY=“no” BOOTPROTO=“static” DEFROUTE=“yes” IPV4_FAILURE_FATAL=“no” IPV6INIT=“yes” IPV6_AUTOCONF=“yes” IPV6_DEFROUTE=“yes” IPV6_FAILURE_FATAL=“no” IPV6_ADDR_GE
2020-05-16 17:43:35
224
原创 Centos 关闭防火墙
Centos 关闭防火墙 sudo systemctl stop firewalld 临时关闭 sudo systemctl disable firewalld ,然后reboot 永久关闭 sudo systemctl status firewalld 查看防火墙状态。
2020-05-16 17:41:25
168
原创 Oracle JDK String类之Equals方法剖析
public boolean equals(Object anObject) { if (this == anObject) { return true; } if (anObject instanceof String) { String anotherString = (String)anObjec...
2020-03-31 17:44:34
315
原创 SpringBoot集成FlyWay之踩坑记录
Maven 官网最新版目前为6.2.4 <dependency> <groupId>org.flywaydb</groupId> <artifactId>flyway-core</artifactId> <version>6.2.4</version...
2020-02-23 14:54:28
9129
原创 JAVA连接Mysql数据库Driver驱动异常
Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class is...
2019-12-21 17:03:25
1260
原创 JAVA连接Mysql数据库抛乱码异常解决方案
java.sql.SQLException The server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone. You must… JAVA连接Mysql数据库抛出以上异常 需在application.yml中加入 jdbc:mysql://localhost:3306/数据库?...
2019-12-21 16:53:30
318
原创 Java中关于Lombok表达式@Builder注解的坑
关于Java中Lombok表达式@Builder注解的坑 @Builder语法 import lombok.Builder; import lombok.Data; @Builder @Data public class User{ //姓名 private String name; //年龄 private String age; } //测试类 public class Tes...
2019-09-19 08:54:36
1908
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅