Linux工具-cURL
参考文献
https://www.bilibili.com/video/BV1n94y1U7Eu/?spm_id_from=333.788
https://www.ruanyifeng.com/blog/2019/09/curl-reference.html
https://catonmat.net/cookbooks/curl
cURL
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162# 基础用法curl URL# POSTcurl -X -POST URLcurl -XPOST URLcurl -XPOST URL -d '{}'# --data-urlencode参数等同于-d,发送 POST 请求的数据体,区别在于会自动将发送的数据进行 URL 编码。curl --data-urlencode 'comment=hello world' ...
Gitlab-遇到的问题
参考文献
Gitlab runner Server certificate verification failed
Gitlab问题
Gitlab runner Server certificate verification failed
解决方法
123sduo apt-get updatesudo apt-get install apt-transport-https ca-certificates -y sudo update-ca-certificates
Gradle-遇到的问题
参考文献
Gradle项目下载依赖报错,显示走代理服务器被拒绝
12345Could not download mybatis-plus-boot-starter-3.5.1.jar (com.baomidou:mybatis-plus-boot-starter:3.5.1)Could not get resource 'https://maven.aliyun.com/nexus/content/groups/public/com/baomidou/mybatis-plus-boot-starter/3.5.1/mybatis-plus-boot-starter-3.5.1.jar'.Could not HEAD 'https://maven.aliyun.com/nexus/content/groups/public/com/baomidou/mybatis-plus-boot-starter/3.5.1/mybatis-plus-boot-starter-3.5.1.jar'.Connect to 127.0.0.1:9090 [/127. ...
Junit-遇到的问题
参考文献
junit5-samples
Junit5依赖配置错误,导致单测运行报错
正确的配置,参考于官方给出的Maven示例
12345678910111213141516171819<dependencyManagement> <dependencies> <dependency> <groupId>org.junit</groupId> <artifactId>junit-bom</artifactId> <version>5.9.2</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies></dependencyManagement><dependencies> <dependency> <groupId>org.juni ...
Linux-遇到的问题
参考文献
https://blog.csdn.net/qq_39958380/article/details/127082069?spm=1001.2014.3001.5501
Ubuntu
安装Ubuntu 18.04系统,网卡驱动问题
现象:
使用ip address查看网络信息,发现没有网卡信息
12345678# ip address1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever
使用lspci | ...
Windows-遇到的问题
参考文献
Windows端口被占用
123netstat -ano | findstr :端口号taskkill /F /PID 具体PID
SpringBoot-Flyway父子项目配置
参考文献
Migrating multiple schemas with distinct life-cycle using Flyway and Spring Boot
背景说明
由于公司架构升级,需要把部分组件抽离出来重构,需要抽离出一个所有组件的父组件项目来统一管理其他组件公共的功能模块或者依赖等.父组件项目由于有些配置项需要灵活配置,故而将这些配置项放入数据库表中进行管理.所以这边采用Flyway框架来管理这些SQL.
但由于父组件和子组件都需要使用Flyway框架,因此对此进行调查研究一下.
环境说明
父子项目A和B,A为父项目,B为子项目.
父子项目都为SpringBoot项目.
JDK版本为11
SpringBoot版本如下所示:
123456<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> &l ...
MySQL-File Page Type
参考文献
MySQL 源码
MySQL5.6 File Page Types
来源storage/innobase/include/fil0fil.h
File Page Type
十进制
16进制
含义
说明
FIL_PAGE_INDEX
17855
0x45BF
B-tree node
B+树叶节点
FIL_PAGE_UNDO_LOG
2
0x0002
Undo log page
Undo Log页
FIL_PAGE_INODE
3
0x0003
Index node
索引节点
FIL_PAGE_IBUF_FREE_LIST
4
0x0004
Insert buffer free list
Insert Buffer空闲列表
FIL_PAGE_TYPE_ALLOCATED
0
0x0000
Freshly allocated page
该页为最新分配
FIL_PAGE_IBUF_BITMAP
5
0x0005
Insert buffer bitmap
Insert Buffer位图
FIL_PAGE_TYPE_SYS
6
0x0006
...
InnoDB(五)-InnoDB存储结构
参考文献
MySQL技术内幕 InnoDB存储引擎
极客时间–SQL必知必会(陈旸)
索引组织表
在InnoDB存储引擎中,表都是根据主键顺序组织存放的,这种存储方式的表称为索引组织表(index organized table).在InnoDB存储引擎表中,每张表都有个主键(Primary Key),如果在创建表时没有显示地定义主键,则InnoDB存储引擎会按如下方式选择或创建主键:
首先判断表中是否有非空的唯一索引(Unique Not Null),如果有,则该列即为主键.
如果不符合上述条件,InnoDB存储引擎会自动创建一个6字节大小的指针.
当表中有多个非空唯一索引,InnoDB存储引擎将选择建表时第一个定义的非空唯一索引为主键.需要特别注意的是,主键的选择根据的是定义索引的顺序,而不是建表是列的顺序.
123456789create table z( a int not null, b int null, c int not null, d int not null, unique key (b), unique key (d), unique key (c ...
InnoDB(四)-InnoDB文件
参考文献
MySQL技术内幕 InnoDB存储引擎
参数文件
当MySQL实例启动时,数据库会先去读一个配置参数文件,用来寻找数据库的各种文件所在位置以及指定某些初始化参数,这些参数通常定义了某种内存结构有多大等.
可以通过命令SHOW VARIABLES来查看数据中的所有参数,也可以通过LIKE来过滤参数名.从MySQL5.1版本开始,可以通过performance_schema架构下的GLOBAL_VARIABLES视图来进行查找.
12345678910111213141516171819202122232425262728293031323334mysql> select * from global_variables where variable_name like 'innodb_buffer%';+-------------------------------------+----------------+| VARIABLE_NAME | VARIABLE_VALUE |+-------- ...