MyBatisPlus-2-集成
入门案例 1.1 创建测试表 CREATE DATABASE mp; USE mp; CREATE TABLE tbl_employee( id INT(11) PRIMARY KEY AUTO_INCREMENT, last_name VARCHAR(50), email VARCHAR(50), gender CHAR(1), age INT ); INSERT INTO tbl_employee(last_name,email,gender,age) VALUES('Tom','tom@test.com',1,22); INSERT INTO tbl_employee(last_name,email,gender,age) VALUES('Jerry','jerry@test.com',0,25); INSERT INTO tbl_employee(last_name,email,gender,age) VALUES('Black','black@test.com',1,30); INSERT INTO tbl_employee(last_name,email,gender,age) VALUES('White','white@test.com',0,35); 1.2 创建Javabean @Data @TableName(value = "tbl_employee")