长相思,长相思,若问相思甚了期, 除非相见时。 长相思,长相思,欲把相思说似谁, 浅情人不知。 Everlasting Longing I yearn for long, I yearn for long. When may I end my yearning song? Until you com ...
分类:
其他好文 时间:
2020-06-21 23:31:29
阅读次数:
70
1 概要 switch case语句 for循环语句 goto语句 字符串的格式化 运算符 2 switch case语句 package main func main() { /*switch 1 + 1 { case 1: fmt.Println("equal one") case 2: fmt ...
分类:
其他好文 时间:
2020-06-21 15:42:26
阅读次数:
51
主要参考:http://tutorials.jenkov.com/java-nio/buffers.html 一、Java NIO Buffer Java NIO Buffers are used when interacting with NIO Channels. As you know, da ...
分类:
编程语言 时间:
2020-06-21 13:33:29
阅读次数:
51
最近将windows上的mysql数据库导入到阿里云上,结果项目一直报错,提示表不存在,网上查了下应该是mysql的配置导致的,找到mysql的配置文件,我的配置文件叫“my.cnf”,在最后加一行“lower_case_table_names=1” 加上配置之后记得重启数据库 ...
分类:
数据库 时间:
2020-06-21 12:15:31
阅读次数:
52
harbor安装依赖于docker和docker compse,docker 和docker compose安装过程详见【系列】CentOS 7.3 离线安装(无网络环境)CI CD环境之docker+docker compose ,这里不再赘述,直接开始harbor的安装 1.下载离线安装包并上传 ...
分类:
其他好文 时间:
2020-06-20 19:35:41
阅读次数:
59
前言 HashMap 是无论在工作还是面试中都非常常见常考的数据结构。 比如 Leetcode 第一题 Two Sum 的某种变种的最优解就是需要用到 HashMap 的,高频考题 LRU Cache 是需要用到 LinkedHashMap 的。 HashMap 用起来很简单,底层实现也不复杂,先来 ...
分类:
其他好文 时间:
2020-06-20 14:13:27
阅读次数:
68
Given a string S, consider all duplicated substrings: (contiguous) substrings of S that occur 2 or more times. (The occurrences may overlap.) Return a ...
分类:
其他好文 时间:
2020-06-20 13:20:54
阅读次数:
43
本文主要介绍redis命令行的使用,使用到的软件版本:Java 1.8.0_191、Redis 5.0.8、Jedis 3.3.0。 1、引入依赖 <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> ...
分类:
其他好文 时间:
2020-06-20 11:11:21
阅读次数:
68
[root@rhel8 shell]# cat auto_yum_config.sh #!/bin/bash ########################################################################## # yum config case # ...
分类:
系统相关 时间:
2020-06-19 21:05:36
阅读次数:
68
--if 条件判断语句 if 条件判断 then 命令序列1 else 命令序列2 fi [root@iscsi opt]# vim mkmydata.sh #!/bin/bash dir="/opt/mydata" if [ ! -e $dir ] then mkdir -p $dir fi [r ...
分类:
系统相关 时间:
2020-06-19 17:57:08
阅读次数:
67