Mybatis多对一、多对一关联查询
1,新建 实体class,与student,同时创建数据库student:CREATE TABLE`t_student` ( `id` int(5) NOT NULL AUTO_INCREMENT, `sname` varchar(10) DEFAULT NULL, `cid` int(5) NOT NULL DEFAULT '0', PRIMARY KEY