git init 初始化本地仓库
git remote add origin <项目地址> 创建远程仓库的关联
git remote remove <远程仓库名称> 删除远程仓库的关联
git remote -v 查看本地添加了哪些远程地址
git pull origin master 拉取master主分支代码
git add a.html 添加指定文件
git add . 添加所有文件至本地仓库
git commit -m "注释" 提交至本地仓库
git push origin master 推送至远程仓库
git clone <项目地址> 克隆项目代码
git checkout branch 切换分支
git checkout -b branch -b表示如果这个分支不存在,则会新建branch分支,并切换至此分支
Springboot启动流程
本文使用的SpringBoot版本为:2.7.4
Springboot启动流程(概括)
1、首先创建SpringApplication实例,在构造方法里(初始化属性):
(1)判断Web应用类型是响应式REACTIVE的,还是基于SERVLET的web应用 WebApplicationType
(2)读取spring.factories加载初始化器 ApplicationContextInitializer
(3)读取spring.factories加载监听器 ApplicationListener
简介
auto_increment 指定自增序列
@@auto_increment_offset 指定自增序列的起始值
@@auto_increment_increment 指定自增序列的步长,即每次增加多少。
查看自增相关系统变量:
show variables like '%auto_incre%'
修改自增步长和初始值:
set @@auto_increment_increment=10;
set @@auto_increment_offset=5;
详细说明
示例一:指定自增列
Springboot项目i18n国际化配置
1、创建Springboot项目
创建Springboot项目,添加以下依赖:
Spring Web
Thymeleaf
2、Springboot项目i18n配置
thymelea模板配置:
thymeleaf:
prefix: classpath:/templates/
suffix: .html
mode: HTML5
encoding: UTF-8
messages:
basename: i18n/messages
Docker基础命令
systemctl start docker 启动docker
systemctl stop docker 关闭docker
systemctl restart docker 重启docker
systemctl status docker 查看docker状态
docker version 查看版本信息
docker info 查看docker信息