简介
auto_increment 指定自增序列
@@auto_increment_offset 指定自增序列的起始值
@@auto_increment_increment 指定自增序列的步长,即每次增加多少。
查看自增相关系统变量:
show variables like '%auto_incre%'
修改自增步长和初始值:
set @@auto_increment_increment=10;
set @@auto_increment_offset=5;
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信息
在Vue页面中使用js修改元素样式同在普通Html页面,首先也是定位元素,然后直接修改元素样式。
1、通过id定位元素
<div id="leftmenu" @click="toggleMenuList" class="left-menu">
2、使用原生js修改样式:
document.getElementById("leftmenu").style.width = '200px';
document.getElementById("leftmenu").style.cssText='width: 450px; border: 1px solid #eee;';
Springboot整合Kafka具体步骤如下:
1、创建Springboot项目
创建Springboot项目,添加以下依赖:
Spring Web
Spring for Apache Kafka
如下图示: