DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( id BIGINT(20)NOT NULL COMMENT '主键ID', `name` VARCHAR(30)NULL DEFAULT NULL COMMENT '姓名', age INT(11) NULL DEFAULT NULL COMMENT '年龄', email VARCHAR(50)NULL DEFAULT NULL COMMENT '邮件', PRIMARY KEY (id) );
DELETE FROM `user`; INSERT INTO `user`(id,`name`,age,email)VALUES (1,'James Gosling',18,'James Gosling@qq.com'), (2,'Dennis Ritchie ',19,'Dennis Ritchie@qq.com'), (3,'Bjarne Stroustrup ',20,'Bjarne Stroustrup@qq.com'), (4,'gflstudy',21,'gflstudy@qq.com'), (5,'Gan Feng Lei',22,'Gan Feng Lei@qq.com');
空格也有
启动类扫描是mapper包,不是接口