Back-end knowledge collection (***Continuous update~***)
frame
Spring Boot
Some SpringBoot usage notes
MyBatis
MyBatis-PLUS
An enhanced tool for MyBatis
Official website: https://baomidou.com
SpringCloud
Shiro
Spring
Dubbo
database
Redis
MySQL
# 时间格式化
date_format(time, '%Y-%m-%d %H:%i:%s');
date_format(from_unixtime(time/1000),'%Y-%m-%d %H:%i:%s')
# 随机取一条数据
select * from users where userid >= ((select max(userid) from users)-(select min(userid) from users)) * rand() + (select min(userid) from users) limit 1
MyCat
development tools
IDEA
-
hot key
大小写切换:ctrl+shift+u
Drawing software
system
Linux
-
command
#观察文件类型 file file ~/.bashrc #脚本文件名的搜索 which/type which ifconfig which -a command #将所有由 PATH 目录中可以找到的指令均列出,而不止第一个被找到的指令名称 #文件档名的搜索 whereis/locate/find find /etc -newer /etc/passwd #容量相关 df/du du -sh ./* #常见的压缩技术 #时间gzip<bzip2<xz,压缩效果gzip<bzip2<xz gzip bzip2 xz #awk命令 2020-07-27 07:28:38.042 INFO 5138 --- [vipUserMktTouchJob_Worker-1:QXyq4kMAdZ] ExecutorFactory.handler[79] : [op:handler, executorId:2, ruleId:145, uid:[email protected], handler:true, result:success] cat webapp.log | grep 'ExecutorFactory.handler[79]' | awk -F'uid:' '{print $2}' | awk -F',' '{print $1}' | sort -u
Distributed storage system
MINIO
CEPH
HDFS
JAVA related
Design Patterns
Timed task scheduling
ELASTIC-JOB
<!-- 2.x版本接入案例 -->
<!-- 引入依赖包 -->
<!-- elastic-job -->
<dependency>
<groupId>com.dangdang</groupId>
<artifactId>elastic-job-lite-spring</artifactId>
<version>2.1.5</version>
</dependency>
<!-- 在spring xml中配置作业 -->
<!--配置作业注册中心 -->
<reg:zookeeper id="regCenter" server-lists="${zookeeper.serverLists}" namespace="namespace"
base-sleep-time-milliseconds="1000" max-sleep-time-milliseconds="3000" max-retries="3"/>
<!-- 配置作业-->
<job:simple id="job1" class="jobClass"
registry-center-ref="regCenter" cron="${job.cron}"
sharding-total-count="${job.sharding-total-count}"
sharding-item-parameters="${job.sharding-item-parameters}"
overwrite="true"
description="定时任务"/>
<!-- 参数案例 -->
zookeeper.serverLists=x.x.x.x:2181,x.x.x.x:2182
job.cron=0 0 2 * * ?
job.sharding-total-count=1
job.sharding-item-parameters=0=A
XXL-JOB
Useful tools
Hutool a small and complete JAVA tool library
Arthas
Mock tool
Lambda
Maven
Gradle
Cache
Caffeine
Memcached
Redis
Big Data
Flink (Stream Computing Framework)
Storm
Hadoop
The internet
Netty
SOFABolt
Other networks
Java implements TCP communication
Java Socket implements simple HTTP service
Middleware
RabbitMQ
Relevant notes moved to [RabbitMQ.md](file://RibbitMQ.md)
Kafka
ZooKeeper
Data Structures and Algorithms
Consistent hash algorithm
BitMap
- 应用
给用户打标签
Rewriting notes
other
Git
DNS
CDN
Docker
Picture related
GIT
-
Commit Message format
feat:新功能(feature) fix:修补bug docs:文档(documentation) style: 格式(不影响代码运行的变动,空格,格式化,等等) refactor:重构(即不是新增功能,也不是修改bug的代码变动) perf: 性能 (提高代码性能的改变) test:增加测试或者修改测试 build: 影响构建系统或外部依赖项的更改(maven,gradle,npm 等等) ci: 对CI配置文件和脚本的更改 chore:对非 src 和 test 目录的修改 revert: Revert a commit
Excel large file processing
Scripting language
Back-end technology map
surveillance system
Graduation Design Mini Program-Health Manager
books
Java
《Java编程思想》
《第一本Docke书籍》
《Effective Java》
《深入理解Java虚拟机》
《Java性能调优指南》
《从Paxos到Zookeeper》
《TCP/IP详解》
《HTTP详解》
《linux与unix shell编程指南》
《鸟哥的Linux私房菜》
《Python编程 从入门到实践》
《高性能MySQL》
《Hive编程指南》
《重构:改善既有代码的设计》
《Head First 设计模式》
《Redis设计与实现》
《MySQL必知必会》
《Java并发编程实战》
《Java性能权威指南》
《编程珠玑》
《算法导论》
《深⼊理解计算机系统》
《图解TCP/IP》
《领域驱动设计》
《代码大全》
《修改代码的艺术》
《代码整洁之道》
《程序员的职业素养》