MyBatis框架怎样开发
1、创建 maven 工程;工程信息如下

2、添加Mybatis坐标(pom.xml 文件中添加 Mybatis3.4.5 的坐标)

3、编写User实体类

4、提供get/set方法及toString方法;
5、编写持久层接口UserDao(亦可写为:UserMapper)

6、编写持久接口层的映射文件(UserMapper.xml)

7、创建位置:必须和持久层接口在相同的包中。名称:必须以持久层接口名称命名文件名,扩展名是.xml
8、SqlMapConfig.XML中加载UserMapper.xml;
9、UserMapper.xml中具体配置

10、SqlMapConfig.XML具体配置

11、测试类
