# mybatis-hello **Repository Path**: qianggetaba/mybatis-hello ## Basic Information - **Project Name**: mybatis-hello - **Description**: mybatis demo - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-01-18 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mybatis-hello mybatis demo very simple demo,but you can learn how does the mybatis work in com.Test#main shows two way to use mybatis 1. normal way, xml configuration 2. no xml. all is java code mybatis-config.xml mybatis config CourseMapper.xml table course mappered to sql and entity.Course mapper.CourseMapper use CourseMapper.xml to mapper sql entity.Course table course entity table course id(int) name(varchar) takeTime(int) courseNum(varchar) after add slf4j + logback, there are sql log in the output mybatis 多对多查询demo student学生表 id name age stuNum学生号 sc 选课表 id stuNum courseNum course 课程表 id name takeTime学时 courseNum课程号 主要是看CourseMapper.xml的getStu查询的resultMap