# springboot集成mybatis **Repository Path**: Junior-L/mybaits ## Basic Information - **Project Name**: springboot集成mybatis - **Description**: 使用spring boot 集成mybaits - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-30 - **Last Updated**: 2021-07-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # springboot集成mybatis #### 介绍 使用spring boot 集成mybaits #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. alter table users add primary key(id); 添加主键 alter table users modify id int(20) auto_increment; 主键自增 alter table users auto_increment=1; 设置自增量 2. create table teacher( id int(20) not null auto_increment, name varchar(20) not null , primary key (id) )ENGINE=innodb default charset =utf8; insert into teacher (name) value ('李老师'); create table student( id int(20) not null auto_increment, name varchar(20) default null , tid int(20) default null, primary key (id) )ENGINE = innodb default charset = utf8; insert into student (name, tid) VALUES ('小明',1); insert into student (name, tid) VALUES ('小红',1); insert into student (name, tid) VALUES ('小赵',1); insert into student (name, tid) VALUES ('张三',1); insert into student (name, tid) VALUES ('小白',1); insert into student (name, tid) VALUES ('小紫',1);